Files
openfoodnetwork/spec/components/distributor_title_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
288 B
Ruby

# frozen_string_literal: true
RSpec.describe DistributorTitleComponent, type: :component do
it "displays distributor title with its name" do
render_inline(described_class.new(name: "Freddy's Farm Shop"))
expect(page).to have_selector "h3", text: "Freddy's Farm Shop"
end
end