aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/routing_test.rb
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 /railties/test/application/routing_test.rb
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 'railties/test/application/routing_test.rb')
-rw-r--r--railties/test/application/routing_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb
index 07807c3620..e50d744e26 100644
--- a/railties/test/application/routing_test.rb
+++ b/railties/test/application/routing_test.rb
@@ -235,7 +235,7 @@ module ApplicationTests
controller :foo, <<-RUBY
class FooController < ApplicationController
def index
- render text: "foo"
+ render :text => "foo"
end
end
RUBY
@@ -243,14 +243,14 @@ module ApplicationTests
controller :bar, <<-RUBY
class BarController < ApplicationController
def index
- render text: "bar"
+ render :text => "bar"
end
end
RUBY
app_file 'config/routes.rb', <<-RUBY
AppTemplate::Application.routes.draw do
- get 'foo', to: 'foo#index'
+ get 'foo', :to => 'foo#index'
end
RUBY
@@ -266,8 +266,8 @@ module ApplicationTests
app_file 'config/routes.rb', <<-RUBY
AppTemplate::Application.routes.draw do
- get 'foo', to: 'foo#index'
- get 'bar', to: 'bar#index'
+ get 'foo', :to => 'foo#index'
+ get 'bar', :to => 'bar#index'
end
RUBY
@@ -283,7 +283,7 @@ module ApplicationTests
app_file 'config/routes.rb', <<-RUBY
AppTemplate::Application.routes.draw do
- get 'foo', to: 'foo#index'
+ get 'foo', :to => 'foo#index'
end
RUBY