mirror of https://github.com/rails/rails
MiniTest condition removed
This commit is contained in:
parent
226528dfcc
commit
c20a74da4f
|
@ -10,15 +10,9 @@ require 'active_support/core_ext/kernel/reporting'
|
||||||
|
|
||||||
module ActiveSupport
|
module ActiveSupport
|
||||||
class TestCase < ::Test::Unit::TestCase
|
class TestCase < ::Test::Unit::TestCase
|
||||||
if defined? MiniTest
|
Assertion = MiniTest::Assertion
|
||||||
Assertion = MiniTest::Assertion
|
alias_method :method_name, :name if method_defined? :name
|
||||||
alias_method :method_name, :name if method_defined? :name
|
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
|
|
||||||
|
|
||||||
$tags = {}
|
$tags = {}
|
||||||
def self.for_tag(tag)
|
def self.for_tag(tag)
|
||||||
|
|
Loading…
Reference in New Issue