Permalink
Browse files

just assign the instance variables on the test

  • Loading branch information...
1 parent ab54ec7 commit ed180eea48fdbfd26540145494fbbdfb1fa2d50b @tenderlove tenderlove committed Aug 5, 2014
Showing with 3 additions and 7 deletions.
  1. +3 −7 actionpack/test/dispatch/prefix_generation_test.rb
@@ -165,16 +165,12 @@ def app
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

0 comments on commit ed180ee

Please sign in to comment.