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

This commit is contained in:
Jeremy Kemper
2008-11-07 13:26:28 -05:00
parent ae9581e0f3
commit 00f72cf99d

View File

@@ -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