From 9c2c135731fdec5fc6e4a012445eeb3854be4184 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Sun, 20 May 2012 23:09:40 +0200 Subject: [PATCH] I made a boo boo --- features/step_definitions/web_steps.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index 9bba335cc..ba4943384 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -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