Files
openfoodnetwork/spec/components/example_component_spec.rb
Maikel Linke dcb6f4676d Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00

9 lines
254 B
Ruby

# frozen_string_literal: true
RSpec.describe ExampleComponent, type: :component do
it "displays the h1 with the given parameter" do
render_inline(described_class.new(title: "Hello"))
expect(page).to have_selector "h1", text: "Hello"
end
end