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

This commit is contained in:
Aaron Patterson 2010-10-01 17:22:42 -07:00
parent 542ddd8c89
commit ff2fdcc52b
4 changed files with 2 additions and 20 deletions

View File

@ -11,9 +11,8 @@ begin
# 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

View File

@ -24,8 +24,7 @@ module ActiveSupport
else
Assertion = Test::Unit::AssertionFailedError
require 'active_support/testing/default'
include ActiveSupport::Testing::Default
undef :default_test
end
$tags = {}

View File

@ -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

View File

@ -126,13 +126,6 @@ class AssertPresentTest < ActiveSupport::TestCase
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