Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set AS::TestCase::Assertion to the underlying test exception for eith…

…er miniunit or test/unit
  • Loading branch information...
commit 00f72cf99d3653198a1e080964d396fbeb23e52e 1 parent ae9581e
@jeremy jeremy authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 activesupport/lib/active_support/test_case.rb
View
5 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 @@ 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
Please sign in to comment.
Something went wrong with that request. Please try again.