From 0212351d32e26b0c8bd86210a993c140cb1cb599 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Thu, 8 Jan 2015 14:48:06 +1100 Subject: [PATCH] Tighten test --- spec/features/admin/reports_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/admin/reports_spec.rb b/spec/features/admin/reports_spec.rb index 92bffefebd..78f3b238b8 100644 --- a/spec/features/admin/reports_spec.rb +++ b/spec/features/admin/reports_spec.rb @@ -137,9 +137,9 @@ feature %q{ end it "displays the report" do - page.should have_content "#{user1.enterprises.first.name}" #listed in distributors dropdown - page.should_not have_content "#{user2.enterprises.first.name}" #not listed - + page.should have_select 'q_distributor_id_eq', with_options: [user1.enterprises.first.name] + page.should_not have_select 'q_distributor_id_eq', with_options: [user2.enterprises.first.name] + select user1.enterprises.first.name, from: 'q_distributor_id_eq' click_button 'Search'