提交 00f72cf9 编写于 作者: J Jeremy Kemper

Set AS::TestCase::Assertion to the underlying test exception for either miniunit or test/unit

上级 ae9581e0
......@@ -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 @@ class TestCase < ::Test::Unit::TestCase; end
require 'active_support/testing/default'
class TestCase < ::Test::Unit::TestCase
Assertion = Test::Unit::AssertionFailedError
include ActiveSupport::Testing::Default
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册