1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Specify :match => :one explicitly.

This commit is contained in:
Tim Moore 2013-04-14 10:32:08 +10:00
parent 3efdb38827
commit dac3235172

View file

@ -121,7 +121,7 @@ Capybara::SpecHelper.spec "#fill_in" do
@session.fill_in('with_change_event', :with => 'some value')
# click outside the field to trigger the change event
@session.find(:css, 'body').click
@session.find(:css, '.change_event_triggered').should have_text 'some value'
@session.find(:css, '.change_event_triggered', :match => :one).should have_text 'some value'
end
end