提交 5fa8c3b6 编写于 作者: J Jeremy Kemper

MiniTest::Unit#method_name alias for Test::Unit compat

上级 9880baa9
...@@ -17,6 +17,7 @@ module ActiveSupport ...@@ -17,6 +17,7 @@ module ActiveSupport
class TestCase < ::Test::Unit::TestCase class TestCase < ::Test::Unit::TestCase
if defined? MiniTest if defined? MiniTest
Assertion = MiniTest::Assertion Assertion = MiniTest::Assertion
alias_method :method_name, :name
else else
# TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit # TODO: Figure out how to get the Rails::BacktraceFilter into minitest/unit
if defined?(Rails) if defined?(Rails)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册