diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-25 08:44:26 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-09-25 08:44:26 +0000 |
commit | 14c1cb4bcbfe43a823397d6577b5aa10efc8eae7 (patch) | |
tree | 1a18c37627f7311d1a20b8a80970e7cef6019166 /railties | |
parent | 79a9c7a702f4bccb2af5c82bb9a78209b28ab1c7 (diff) | |
download | rails-14c1cb4bcbfe43a823397d6577b5aa10efc8eae7.tar.gz rails-14c1cb4bcbfe43a823397d6577b5aa10efc8eae7.tar.bz2 rails-14c1cb4bcbfe43a823397d6577b5aa10efc8eae7.zip |
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
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/console_app.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/console_app.rb b/railties/lib/console_app.rb index b23cda9da0..0030b2bb3a 100644 --- a/railties/lib/console_app.rb +++ b/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. |