change for new capybara

This commit is contained in:
John Bintz 2013-05-13 06:11:14 -04:00
parent bb4c265337
commit c3d0a7a96c
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ def within_any(search, &block)
nodes.each_with_index do |node, index|
begin
within("#{search}:eq(#{index + 1})", &block)
within("#{search}:nth-child(#{index + 1})", &block)
return true
rescue RSpec::Expectations::ExpectationNotMetError, Capybara::ElementNotFound
end