From 18aee333359a4dea6847754f3055ce223aa2474c Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Mon, 6 Sep 2010 20:47:25 +0200 Subject: Do not require passing :app to mounted helpers, it's actually useless and not DRY --- actionpack/test/dispatch/prefix_generation_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/test/dispatch') diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index 3b47a1b72d..1e2df682b3 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -72,7 +72,7 @@ module TestGenerationPrefix class ::InsideEngineGeneratingController < ActionController::Base include BlogEngine.routes.url_helpers - include RailsApplication.routes.mounted_helpers(:app) + include RailsApplication.routes.mounted_helpers def index render :text => posts_path -- cgit v1.2.3 From 6258f7c972f0dcf85916a0ac9ce3d34460201353 Mon Sep 17 00:00:00 2001 From: Piotr Sarnacki Date: Tue, 7 Sep 2010 14:53:37 +0200 Subject: Change app to main_app in mounted_helpers --- actionpack/test/dispatch/prefix_generation_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/test/dispatch') diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index 1e2df682b3..26d76557dd 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -83,9 +83,9 @@ module TestGenerationPrefix end def url_to_application - path = app.url_for( :controller => "outside_engine_generating", - :action => "index", - :only_path => true) + path = main_app.url_for(:controller => "outside_engine_generating", + :action => "index", + :only_path => true) render :text => path end -- cgit v1.2.3