diff options
author | Andrew White <andrew.white@unboxed.co> | 2017-02-21 15:29:10 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2017-02-21 15:30:48 +0000 |
commit | d7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f (patch) | |
tree | 184406df10d1e8ebabc4970b15c8bbf113955c39 /railties | |
parent | fbda6b9837e3ce41dc59de0e791c972ba6d49ba3 (diff) | |
download | rails-d7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f.tar.gz rails-d7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f.tar.bz2 rails-d7c1e62c2cd2969b991bc4a1150b02b27f6d6e3f.zip |
Split direct method into two
Use a separate method called `resolve` for the custom polymorphic
mapping to clarify the API.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/routing_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
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 |