aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/test_case.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/test_case.rb b/activesupport/lib/active_support/test_case.rb
index b991f62a17..f47329d026 100644
--- a/activesupport/lib/active_support/test_case.rb
+++ b/activesupport/lib/active_support/test_case.rb
@@ -13,7 +13,9 @@ module ActiveSupport
require 'test/unit'
MiniTest::Unit.class_variable_set('@@installed_at_exit', autorun_enabled)
- class TestCase < ::Test::Unit::TestCase; end
+ class TestCase < ::Test::Unit::TestCase
+ Assertion = MiniTest::Assertion
+ end
# Test::Unit compatibility.
rescue LoadError
@@ -21,6 +23,7 @@ module ActiveSupport
require 'active_support/testing/default'
class TestCase < ::Test::Unit::TestCase
+ Assertion = Test::Unit::AssertionFailedError
include ActiveSupport::Testing::Default
end
end