Browse files

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

  • Loading branch information...
2 parents 6504a21 + a1f1df8 commit c7699fa66123c399627f4d262e67b59dd001c9ac @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 c7699fa

Please sign in to comment.