Permalink
Browse files

eliminate path_to for small apps

  • Loading branch information...
1 parent d37c1d8 commit 97bb9b7b1037ff7ee753aefe62a655434505c710 @chrisrhoden committed May 23, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/step_definitions/web_steps.rb
@@ -184,12 +184,12 @@ def with_scope(locator)
end
end
-Then /^(?:|I )should be on (.+)$/ do |page_name|
+Then /^(?:|I )should be on "(.+)"$/ do |page_name|
current_path = URI.parse(current_url).path
if current_path.respond_to? :should
- current_path.should == path_to(page_name)
+ current_path.should == page_name
else
- assert_equal path_to(page_name), current_path
+ assert_equal page_name, current_path
end
end

0 comments on commit 97bb9b7

Please sign in to comment.