I made a boo boo

This commit is contained in:
Florian Staudacher 2012-05-20 23:09:40 +02:00
parent b5a53c03d7
commit 9c2c135731

View file

@ -194,9 +194,9 @@ Then /^the "([^"]*)" checkbox(?: within "([^"]*)")? should not be checked$/ do |
end
Then /^(?:|I )should be on (.+)$/ do |page_name|
current_path = URI.parse(current_url).path
wait_until(3) do
current_path = path_to(page_name)
current_path = URI.parse(current_url).path
current_path == path_to(page_name)
end
if current_path.respond_to? :should