Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #11930 from UncleGene/ties_test

Fix test incompatible with 1.8.7
  • Loading branch information...
commit 6d9050bae4879994782bb5a9e4bd0ac3ae3be3ef 2 parents 946ad5d + 93f1a72
@guilleiguaran guilleiguaran authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/routing_test.rb
View
8 railties/test/application/routing_test.rb
@@ -330,7 +330,7 @@ def index
controller :foo, <<-RUBY
class FooController < ApplicationController
def index
- render text: "foo"
+ render :text => "foo"
end
end
RUBY
@@ -338,14 +338,14 @@ def index
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
Please sign in to comment.
Something went wrong with that request. Please try again.