diff options
Diffstat (limited to 'railties/test/application')
-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 |