diff options
Diffstat (limited to 'railties/test/console_app_test.rb')
-rw-r--r-- | railties/test/console_app_test.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/railties/test/console_app_test.rb b/railties/test/console_app_test.rb index f419fe0d8d..f11de087e3 100644 --- a/railties/test/console_app_test.rb +++ b/railties/test/console_app_test.rb @@ -11,19 +11,19 @@ require 'dispatcher' require 'console_app' # console_app sets Test::Unit.run to work around the at_exit hook in test/unit, which kills IRB -Test::Unit.run = false - -class ConsoleAppTest < Test::Unit::TestCase - def test_app_method_should_return_integration_session - assert_nothing_thrown do - console_session = app - assert_not_nil console_session - assert_instance_of ActionController::Integration::Session, - console_session +if Test::Unit.respond_to?(:run=) + Test::Unit.run = false + + class ConsoleAppTest < Test::Unit::TestCase + def test_app_method_should_return_integration_session + assert_nothing_thrown do + console_session = app + assert_not_nil console_session + assert_instance_of ActionController::Integration::Session, + console_session + end end - end - uses_mocha 'console reload test' do def test_reload_should_fire_preparation_callbacks a = b = c = nil |