aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-08-05 09:45:21 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-08-05 09:51:47 -0700
commited180eea48fdbfd26540145494fbbdfb1fa2d50b (patch)
tree2f461371a66d1e2184bd0cf7be497837cc2c937d /actionpack/test
parentab54ec72487b7b20e6fcbec84b72adc13f1b7b50 (diff)
downloadrails-ed180eea48fdbfd26540145494fbbdfb1fa2d50b.tar.gz
rails-ed180eea48fdbfd26540145494fbbdfb1fa2d50b.tar.bz2
rails-ed180eea48fdbfd26540145494fbbdfb1fa2d50b.zip
just assign the instance variables on the test
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/prefix_generation_test.rb10
1 files changed, 3 insertions, 7 deletions
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