Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use Ruby 1.8 syntax

  • Loading branch information...
commit 4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60 1 parent f8452e8
@rafaelfranca rafaelfranca authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/routing_test.rb
View
4 actionpack/test/controller/routing_test.rb
@@ -492,9 +492,9 @@ def test_named_route_root_with_trailing_slash
root :to => "hello#index"
end
- routes = setup_for_named_route(trailing_slash: true)
+ routes = setup_for_named_route(:trailing_slash => true)
assert_equal("http://test.host/", routes.send(:root_url))
- assert_equal("http://test.host/?foo=bar", routes.send(:root_url, foo: :bar))
+ assert_equal("http://test.host/?foo=bar", routes.send(:root_url, :foo => :bar))
end
def test_named_route_with_regexps
Please sign in to comment.
Something went wrong with that request. Please try again.