Created
March 3, 2009 22:55
-
-
Save timriley/73596 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Then /^I should be on the (.+?) page$/ do |page_name| | |
request.request_uri.should == send("#{page_name.downcase.gsub(' ','_')}_path") | |
response.should be_success | |
end | |
Then /^I should be redirected to the (.+?) page$/ do |page_name| | |
request.headers['HTTP_REFERER'].should_not be_nil | |
request.headers['HTTP_REFERER'].should_not == request.request_uri | |
Then "I should be on the #{page_name} page" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment