From 93f1a7219b1fdad34d575d4a8fb8b0278aba7697 Mon Sep 17 00:00:00 2001 From: Eugene Kalenkovich Date: Sun, 18 Aug 2013 10:34:30 -0700 Subject: Fix test incompatible with 1.8.7 --- railties/test/application/routing_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'railties/test/application') 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 -- cgit v1.2.3