aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAndrew White <andyw@pixeltrix.co.uk>2012-12-14 14:52:24 +0000
committerAndrew White <andyw@pixeltrix.co.uk>2012-12-14 14:52:24 +0000
commit9c581d3811f6fba6d3d222896b017e783b6e497a (patch)
tree077ecbc1975194e3b87129c5286841e6d3019e54 /actionpack
parent6ab1a9540b73555f2cabb54860b9ca17e8f226cb (diff)
downloadrails-9c581d3811f6fba6d3d222896b017e783b6e497a.tar.gz
rails-9c581d3811f6fba6d3d222896b017e783b6e497a.tar.bz2
rails-9c581d3811f6fba6d3d222896b017e783b6e497a.zip
Don't use 1.9 hash syntax on 3-2-stable
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/test/dispatch/routing/route_set_test.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/actionpack/test/dispatch/routing/route_set_test.rb b/actionpack/test/dispatch/routing/route_set_test.rb
index d57b1a5637..629b8ed8bd 100644
--- a/actionpack/test/dispatch/routing/route_set_test.rb
+++ b/actionpack/test/dispatch/routing/route_set_test.rb
@@ -19,7 +19,7 @@ module ActionDispatch
test "url helpers are added when route is added" do
draw do
- get 'foo', to: SimpleApp.new('foo#index')
+ get 'foo', :to => SimpleApp.new('foo#index')
end
assert_equal '/foo', url_helpers.foo_path
@@ -28,8 +28,8 @@ module ActionDispatch
end
draw do
- get 'foo', to: SimpleApp.new('foo#index')
- get 'bar', to: SimpleApp.new('bar#index')
+ get 'foo', :to => SimpleApp.new('foo#index')
+ get 'bar', :to => SimpleApp.new('bar#index')
end
assert_equal '/foo', url_helpers.foo_path
@@ -38,13 +38,13 @@ module ActionDispatch
test "url helpers are updated when route is updated" do
draw do
- get 'bar', to: SimpleApp.new('bar#index'), as: :bar
+ get 'bar', :to => SimpleApp.new('bar#index'), :as => :bar
end
assert_equal '/bar', url_helpers.bar_path
draw do
- get 'baz', to: SimpleApp.new('baz#index'), as: :bar
+ get 'baz', :to => SimpleApp.new('baz#index'), :as => :bar
end
assert_equal '/baz', url_helpers.bar_path
@@ -52,15 +52,15 @@ module ActionDispatch
test "url helpers are removed when route is removed" do
draw do
- get 'foo', to: SimpleApp.new('foo#index')
- get 'bar', to: SimpleApp.new('bar#index')
+ get 'foo', :to => SimpleApp.new('foo#index')
+ get 'bar', :to => SimpleApp.new('bar#index')
end
assert_equal '/foo', url_helpers.foo_path
assert_equal '/bar', url_helpers.bar_path
draw do
- get 'foo', to: SimpleApp.new('foo#index')
+ get 'foo', :to => SimpleApp.new('foo#index')
end
assert_equal '/foo', url_helpers.foo_path