features/step_definitions/welcome_page.rb in wally-0.0.40 vs features/step_definitions/welcome_page.rb in wally-0.0.41

- old
+ new

@@ -3,17 +3,18 @@ When /^I view the welcome page$/ do visit "/" end -Then /^I should redirected to the "([^"]*)" project page$/ do |project| - page.current_url.should include "/projects/#{project}" +Then /^I am redirected to the "([^"]*)" project page$/ do |project| + sleep 1 + page.current_path.should include "/projects/#{project}" end When /^I select the project "([^"]*)"$/ do |project| select(project, :from => "projects") end -Then /^"([^"]*)" should be rendered$/ do |text| +Then /^"([^"]*)" is rendered$/ do |text| page.should have_content text end