Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Skip test runner workaround only if Test::Unit is loaded. Closes #9671

…[tomafro]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7627 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 14c1cb4bcbfe43a823397d6577b5aa10efc8eae7 1 parent 79a9c7a
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/console_app.rb
View
2  railties/lib/console_app.rb
@@ -1,7 +1,7 @@
require 'action_controller/integration'
# work around the at_exit hook in test/unit, which kills IRB
-Test::Unit.run = true
+Test::Unit.run = Test::Unit.respond_to?(:run=)
# reference the global "app" instance, created on demand. To recreate the
# instance, pass a non-false value as the parameter.
Please sign in to comment.
Something went wrong with that request. Please try again.