Skip to content
Browse files

Merge branch 'master' of git://github.com/granth/cucumber

  • Loading branch information...
2 parents f819b5e + 06e315f commit 2a5f0d27fc11d87156a6718bf6bcdb6c2ed264c9 @aslakhellesoy aslakhellesoy committed Mar 29, 2009
Showing with 8 additions and 0 deletions.
  1. +8 −0 rails_generators/cucumber/templates/webrat_steps.rb
View
8 rails_generators/cucumber/templates/webrat_steps.rb
@@ -113,3 +113,11 @@
assert field_labeled(label).checked?
<% end -%>
end
+
+Then /^I should be on (.+)$/ do |page_name|
+<% if framework == :rspec -%>
+ URI.parse(current_url).path.should == path_to(page_name)
+<% else -%>
+ assert_equal path_to(page_name), URI.parse(current_url).path
+<% end -%>
+end

0 comments on commit 2a5f0d2

Please sign in to comment.
Something went wrong with that request. Please try again.