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:
parent
3efdb38827
commit
dac3235172
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue