From ed180eea48fdbfd26540145494fbbdfb1fa2d50b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Tue, 5 Aug 2014 09:45:21 -0700 Subject: just assign the instance variables on the test --- actionpack/test/dispatch/prefix_generation_test.rb | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'actionpack/test') diff --git a/actionpack/test/dispatch/prefix_generation_test.rb b/actionpack/test/dispatch/prefix_generation_test.rb index c6e4eefa7a..7cf3559e5d 100644 --- a/actionpack/test/dispatch/prefix_generation_test.rb +++ b/actionpack/test/dispatch/prefix_generation_test.rb @@ -165,16 +165,12 @@ module TestGenerationPrefix RailsApplication end - def engine_object - @engine_object ||= EngineObject.new - end - - def app_object - @app_object ||= AppObject.new - end + attr_reader :engine_object, :app_object def setup RailsApplication.routes.default_url_options = {} + @engine_object = EngineObject.new + @app_object = AppObject.new end include BlogEngine.routes.mounted_helpers -- cgit v1.2.3