aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Hennemeyer <mhennemeyer@gmail.com>2009-02-04 10:52:55 +0100
committerJeremy Kemper <jeremy@bitsweat.net>2009-02-06 08:59:02 -0800
commit86dd2f841d29b326cc480e9c58de63f54799d2c1 (patch)
tree62f438d8981a61fcb33222a485b0b956c3522d68
parenta4790e93bce7fdb4ff049209d7fa49c6c30650f0 (diff)
downloadrails-86dd2f841d29b326cc480e9c58de63f54799d2c1.tar.gz
rails-86dd2f841d29b326cc480e9c58de63f54799d2c1.tar.bz2
rails-86dd2f841d29b326cc480e9c58de63f54799d2c1.zip
Tightening the condition for including ActiveSupport::Testing::SetupAndTeardown::ForMiniTest.
[#1871 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
-rw-r--r--activesupport/lib/active_support/testing/setup_and_teardown.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/testing/setup_and_teardown.rb b/activesupport/lib/active_support/testing/setup_and_teardown.rb
index 245f57a7b0..7edf6fdb32 100644
--- a/activesupport/lib/active_support/testing/setup_and_teardown.rb
+++ b/activesupport/lib/active_support/testing/setup_and_teardown.rb
@@ -8,7 +8,7 @@ module ActiveSupport
include ActiveSupport::Callbacks
define_callbacks :setup, :teardown
- if defined? MiniTest
+ if defined?(MiniTest::Assertions) && TestCase < MiniTest::Assertions
include ForMiniTest
else
include ForClassicTestUnit