Adding a spec to test a regression

This commit is contained in:
Will Marshall
2014-07-09 11:33:36 +10:00
parent 7d39c30dbd
commit 30d78c8da3

View File

@@ -8,6 +8,8 @@ feature %q{
include UIComponentHelper
let!(:producer) { create(:supplier_enterprise) }
let!(:invisible_producer) { create(:supplier_enterprise, visible: false) }
let(:taxon) { create(:taxon) }
let!(:product) { create(:simple_product, supplier: producer, taxons: [taxon]) }
before do
visit producers_path
@@ -16,7 +18,7 @@ feature %q{
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(', ')
page.should have_content producer.supplied_taxons.first.name.upcase
end
it "doesn't show invisible producers" do