Advertisement
saasbook

example_step_2.rb

Jan 10th, 2012
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.24 KB | None | 0 0
  1. Then /^(?:|I )should be on (.+)$/ do |page_name|
  2.   current_path = URI.parse(current_url).path
  3.   if current_path.respond_to? :should
  4.     current_path.should == path_to(page_name)
  5.   else
  6.     assert_equal path_to(page_name), current_path
  7.   end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement