aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-02 22:52:59 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-01-02 22:52:59 -0300
commit4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60 (patch)
treeed392f72f7c7f0350c337260470a046f71972ffb /actionpack/test
parentf8452e8de786377ed89d777dabe7d82987f9b001 (diff)
downloadrails-4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60.tar.gz
rails-4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60.tar.bz2
rails-4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60.zip
Use Ruby 1.8 syntax
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/routing_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index becb928a3c..1a1610eac7 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -492,9 +492,9 @@ class LegacyRouteSetTests < Test::Unit::TestCase
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