lib/rails/generators/rspec/templates/component_spec.rb.tt in actionview-component-1.14.0 vs lib/rails/generators/rspec/templates/component_spec.rb.tt in actionview-component-1.14.1
- old
+ new
@@ -3,10 +3,10 @@
RSpec.describe <%= class_name %>Component, type: :component do
pending "add some examples to (or delete) #{__FILE__}"
# it "renders something useful" do
# expect(
- # render_inline(described_class, attr: "value") { "Hello, components!" }.css("p").to_html
+ # render_inline(described_class.new(attr: "value")) { "Hello, components!" }.css("p").to_html
# ).to include(
# "Hello, components!"
# )
# end
end