removing AS::Testing::Default in favor of just undefing default_test
This commit is contained in:
parent
542ddd8c89
commit
ff2fdcc52b
@ -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
|
||||
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 = {}
|
||||
|
@ -1,9 +0,0 @@
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user