Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

eliminate path_to for small apps

  • Loading branch information...
commit 97bb9b7b1037ff7ee753aefe62a655434505c710 1 parent d37c1d8
@chrisrhoden authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 features/step_definitions/web_steps.rb
View
6 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
Please sign in to comment.
Something went wrong with that request. Please try again.