提交 ff2fdcc5 编写于 作者: A Aaron Patterson

removing AS::Testing::Default in favor of just undefing default_test

上级 542ddd8c
......@@ -11,9 +11,8 @@ module ActionDispatch
# formats are written, so you'll have two output files per test method.
class PerformanceTest < ActionDispatch::IntegrationTest
include ActiveSupport::Testing::Performance
include ActiveSupport::Testing::Default
end
end
rescue NameError
$stderr.puts "Specify ruby-prof as application's dependency in Gemfile to run benchmarks."
end
\ No newline at end of file
end
......@@ -24,8 +24,7 @@ class TestCase < ::Test::Unit::TestCase
else
Assertion = Test::Unit::AssertionFailedError
require 'active_support/testing/default'
include ActiveSupport::Testing::Default
undef :default_test
end
$tags = {}
......
module ActiveSupport
module Testing
module Default #:nodoc:
# Placeholder so test/unit ignores test cases without any tests.
def default_test
end
end
end
end
......@@ -126,13 +126,6 @@ def test_assert_blank_false
end
end
# These should always pass
if ActiveSupport::Testing.const_defined?(:Default)
class NotTestingThingsTest < Test::Unit::TestCase
include ActiveSupport::Testing::Default
end
end
class AlsoDoingNothingTest < ActiveSupport::TestCase
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册