Permalink
Browse files

Fix test incompatible with 1.8.7

  • Loading branch information...
1 parent 946ad5d commit 93f1a7219b1fdad34d575d4a8fb8b0278aba7697 Eugene Kalenkovich committed Aug 18, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/routing_test.rb
@@ -330,22 +330,22 @@ def index
controller :foo, <<-RUBY
class FooController < ApplicationController
def index
- render text: "foo"
+ render :text => "foo"
end
end
RUBY
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 @@ def index
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

0 comments on commit 93f1a72

Please sign in to comment.