aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/routing_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb
index 6b2b2c590c..7d6033c54c 100644
--- a/railties/test/application/routing_test.rb
+++ b/railties/test/application/routing_test.rb
@@ -330,7 +330,7 @@ module ApplicationTests
controller :foo, <<-RUBY
class FooController < ApplicationController
def index
- render text: "foo"
+ render :text => "foo"
end
end
RUBY
@@ -338,14 +338,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
Rails.application.routes.draw do
- get ':locale/foo', to: 'foo#index', as: 'foo'
+ get ':locale/foo', :to => 'foo#index', :as => 'foo'
end
RUBY
@@ -355,7 +355,7 @@ module ApplicationTests
app_file 'config/routes.rb', <<-RUBY
Rails.application.routes.draw do
- get ':locale/bar', to: 'bar#index', as: 'foo'
+ get ':locale/bar', :to => 'bar#index', :as => 'foo'
end
RUBY