From 00f72cf99d3653198a1e080964d396fbeb23e52e Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 7 Nov 2008 13:26:28 -0500 Subject: Set AS::TestCase::Assertion to the underlying test exception for either miniunit or test/unit --- activesupport/lib/active_support/test_case.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3