From d7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 21 Feb 2017 15:29:10 +0000 Subject: Split direct method into two Use a separate method called `resolve` for the custom polymorphic mapping to clarify the API. --- railties/test/application/routing_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'railties') diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb index 1132e7fb55..6742da20cc 100644 --- a/railties/test/application/routing_test.rb +++ b/railties/test/application/routing_test.rb @@ -310,7 +310,7 @@ module ApplicationTests get 'mapping', to: 'foo#mapping' direct(:custom) { "http://www.microsoft.com" } - direct(class: "User") { "/profile" } + resolve("User") { "/profile" } end RUBY @@ -332,7 +332,7 @@ module ApplicationTests get 'mapping', to: 'foo#mapping' direct(:custom) { "http://www.apple.com" } - direct(class: "User") { "/dashboard" } + resolve("User") { "/dashboard" } end RUBY @@ -465,7 +465,7 @@ module ApplicationTests direct(:custom) { 'http://www.apple.com' } get 'mapping', to: 'foo#mapping' - direct(class: 'User') { '/profile' } + resolve('User') { '/profile' } end RUBY @@ -557,7 +557,7 @@ module ApplicationTests get ':locale/foo', to: 'foo#index', as: 'foo' get 'users', to: 'foo#users', as: 'users' direct(:microsoft) { 'http://www.microsoft.com' } - direct(class: 'User') { '/profile' } + resolve('User') { '/profile' } end RUBY -- cgit v1.2.3