1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #4242 from castlerock/remove_condition_for_MiniTest

MiniTest condition removed
This commit is contained in:
Santiago Pastorino 2011-12-31 09:13:40 -08:00
commit d3a2c0e183

View file

@ -10,15 +10,9 @@ require 'active_support/core_ext/kernel/reporting'
module ActiveSupport
class TestCase < ::Test::Unit::TestCase
if defined? MiniTest
Assertion = MiniTest::Assertion
alias_method :method_name, :name if method_defined? :name
alias_method :method_name, :__name__ if method_defined? :__name__
else
Assertion = Test::Unit::AssertionFailedError
undef :default_test
end
Assertion = MiniTest::Assertion
alias_method :method_name, :name if method_defined? :name
alias_method :method_name, :__name__ if method_defined? :__name__
$tags = {}
def self.for_tag(tag)