From 4d4e6e2f2be4f0c3ae2edb9ce56de0840a2abe60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Wed, 2 Jan 2013 22:52:59 -0300 Subject: Use Ruby 1.8 syntax --- actionpack/test/controller/routing_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'actionpack/test') 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 -- cgit v1.2.3