mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
just assign the instance variables on the test
This commit is contained in:
parent
ab54ec7248
commit
ed180eea48
1 changed files with 3 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue