diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-07-14 10:20:30 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:06 +0200 |
commit | 229a868264a1dd5f4441f4b82ccf2a51cf83511d (patch) | |
tree | e42db78246eaa77add09df712eff0e669246b877 /actionpack/test | |
parent | 233be6572c96087192885924c6658a15d01a2a1b (diff) | |
download | rails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.tar.gz rails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.tar.bz2 rails-229a868264a1dd5f4441f4b82ccf2a51cf83511d.zip |
Use new url_for API instead of including routes.url_helpers
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/prefix_generation_test.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index af83ced5e9..c681642eda 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -47,9 +47,8 @@ module TestGenerationPrefix end class ::InsideEngineGeneratingController < ActionController::Base - include BlogEngine.routes.url_helpers def index - render :text => post_path(:id => params[:id]) + render :text => url_for(BlogEngine, :post_path, :id => params[:id]) end def url_to_application @@ -64,7 +63,7 @@ module TestGenerationPrefix class ::OutsideEngineGeneratingController < ActionController::Base include BlogEngine.routes.url_helpers def index - render :text => post_path(:id => 1) + render :text => url_for(BlogEngine, :post_path, :id => 1) end end |