aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxedconsulting.com>2016-02-23 09:59:33 +0000
committerAndrew White <andrew.white@unboxed.co>2017-02-21 15:30:46 +0000
commit47a27e8950ad00654e2ba0420cefd87269e08055 (patch)
tree834c9e96547fd2da97a9c4b535c7eb856653af49 /railties
parentce7d5fb2e6ffa9ec323510aaff51f10b15f1649a (diff)
downloadrails-47a27e8950ad00654e2ba0420cefd87269e08055.tar.gz
rails-47a27e8950ad00654e2ba0420cefd87269e08055.tar.bz2
rails-47a27e8950ad00654e2ba0420cefd87269e08055.zip
Rename url_helper to direct
Diffstat (limited to 'railties')
-rw-r--r--railties/test/application/routing_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/railties/test/application/routing_test.rb b/railties/test/application/routing_test.rb
index 00c5285caa..98673f5c1a 100644
--- a/railties/test/application/routing_test.rb
+++ b/railties/test/application/routing_test.rb
@@ -289,7 +289,7 @@ module ApplicationTests
get 'foo', to: 'foo#bar'
get 'custom', to: 'foo#custom'
- url_helper(:custom) { "http://www.microsoft.com" }
+ direct(:custom) { "http://www.microsoft.com" }
end
RUBY
@@ -306,7 +306,7 @@ module ApplicationTests
get 'foo', to: 'foo#baz'
get 'custom', to: 'foo#custom'
- url_helper(:custom) { "http://www.apple.com" }
+ direct(:custom) { "http://www.apple.com" }
end
RUBY
@@ -466,7 +466,7 @@ module ApplicationTests
app_file "config/routes.rb", <<-RUBY
Rails.application.routes.draw do
get ':locale/foo', to: 'foo#index', as: 'foo'
- url_helper(:microsoft) { 'http://www.microsoft.com' }
+ direct(:microsoft) { 'http://www.microsoft.com' }
end
RUBY
@@ -478,7 +478,7 @@ module ApplicationTests
app_file "config/routes.rb", <<-RUBY
Rails.application.routes.draw do
get ':locale/bar', to: 'bar#index', as: 'foo'
- url_helper(:apple) { 'http://www.apple.com' }
+ direct(:apple) { 'http://www.apple.com' }
end
RUBY