From 47a27e8950ad00654e2ba0420cefd87269e08055 Mon Sep 17 00:00:00 2001 From: Andrew White Date: Tue, 23 Feb 2016 09:59:33 +0000 Subject: Rename url_helper to direct --- 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 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 -- cgit v1.2.3