mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
Set AS::TestCase::Assertion to the underlying test exception for either miniunit or test/unit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user