d7d01d703fc2260444787119f428cd1a87fe893d
1 require 'active_support/test_case'
2 require 'action_controller'
4 # work around the at_exit hook in test/unit, which kills IRB
5 Test
::Unit.run
= true if Test
::Unit.respond_to
?(:run=)
7 # reference the global "app" instance, created on demand. To recreate the
8 # instance, pass a non-false value as the parameter.
10 @app_integration_instance = nil if create
11 @app_integration_instance ||= new_session
do |sess
|
12 sess
.host
! "www.example.com"
16 # create a new session. If a block is given, the new session will be yielded
17 # to the block before being returned.
19 session
= ActionController
::Integration::Session.new
20 yield session
if block_given
?
24 #reloads the environment
27 Dispatcher
.cleanup_application
28 Dispatcher
.reload_application