From 30d78c8da3042b4f072616e35cb87d520cf4cccd Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 9 Jul 2014 11:33:36 +1000 Subject: [PATCH] Adding a spec to test a regression --- spec/features/consumer/producers_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/features/consumer/producers_spec.rb b/spec/features/consumer/producers_spec.rb index 8e834aaeb3..7d4a122996 100644 --- a/spec/features/consumer/producers_spec.rb +++ b/spec/features/consumer/producers_spec.rb @@ -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