aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorPiotr Sarnacki <drogus@gmail.com>2010-07-14 10:20:30 +0200
committerPiotr Sarnacki <drogus@gmail.com>2010-09-03 22:59:06 +0200
commit229a868264a1dd5f4441f4b82ccf2a51cf83511d (patch)
treee42db78246eaa77add09df712eff0e669246b877 /railties/test
parent233be6572c96087192885924c6658a15d01a2a1b (diff)
downloadrails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.tar.gz
rails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.tar.bz2
rails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.zip
Use new url_for API instead of including routes.url_helpers
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/railties/mounted_engine_routes_test.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/test/railties/mounted_engine_routes_test.rb b/railties/test/railties/mounted_engine_routes_test.rb
index 1a0f5f2c21..319b99383c 100644
--- a/railties/test/railties/mounted_engine_routes_test.rb
+++ b/railties/test/railties/mounted_engine_routes_test.rb
@@ -45,10 +45,8 @@ module ApplicationTests
@plugin.write "app/controllers/posts_controller.rb", <<-RUBY
class PostsController < ActionController::Base
- include Blog::Engine.routes.url_helpers
-
def index
- render :text => post_path(1)
+ render :text => url_for(Blog::Engine, :post_path, 1)
end
def generate_application_route
@@ -63,10 +61,8 @@ module ApplicationTests
app_file "app/controllers/application_generating_controller.rb", <<-RUBY
class ApplicationGeneratingController < ActionController::Base
- include Blog::Engine.routes.url_helpers
-
def engine_route
- render :text => posts_path
+ render :text => url_for(Blog::Engine, :posts_path)
end
def url_for_engine_route