Tighten test

This commit is contained in:
Rohan Mitchell
2015-01-08 14:48:06 +11:00
parent 29653a5595
commit 0212351d32

View File

@@ -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'