migrate login stories to cucumber features

This commit is contained in:
Reinier Balt 2009-04-17 08:56:11 +02:00
parent 7bdd365ff3
commit 6d1f034111
10 changed files with 166 additions and 122 deletions

View file

@ -0,0 +1,6 @@
Then /^I should be redirected to (.+?)$/ 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 #{page_name}"
end