mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
21 lines
507 B
Ruby
21 lines
507 B
Ruby
require 'spec_helper'
|
|
|
|
feature %q{
|
|
As a consumer
|
|
I want to see a list of producers
|
|
So that I can shop at hubs distributing their products
|
|
}, js: true do
|
|
include UIComponentHelper
|
|
let!(:producer) { create(:supplier_enterprise) }
|
|
|
|
before do
|
|
visit producers_path
|
|
end
|
|
|
|
it "shows all producers with expandable details" do
|
|
page.should have_content producer.name
|
|
expand_active_table_node producer.name
|
|
page.should have_content producer.supplied_taxons.join(', ')
|
|
end
|
|
end
|