Permalink
Browse files

convert railties to use AS::TestCase

  • Loading branch information...
1 parent b8d8c50 commit 8f309e31057e1b26fefedb199ab0526126fb1fe4 @tenderlove tenderlove committed Jan 6, 2012
Showing with 36 additions and 35 deletions.
  1. +1 −1 railties/test/application/asset_debugging_test.rb
  2. +1 −1 railties/test/application/assets_test.rb
  3. +1 −1 railties/test/application/build_original_fullpath_test.rb
  4. +1 −1 railties/test/application/configuration_test.rb
  5. +1 −1 railties/test/application/console_test.rb
  6. +1 −1 railties/test/application/generators_test.rb
  7. +1 −1 railties/test/application/initializers/boot_test.rb
  8. +1 −1 railties/test/application/initializers/frameworks_test.rb
  9. +1 −1 railties/test/application/initializers/hooks_test.rb
  10. +1 −1 railties/test/application/initializers/i18n_test.rb
  11. +1 −1 railties/test/application/initializers/load_path_test.rb
  12. +1 −1 railties/test/application/initializers/notifications_test.rb
  13. +1 −1 railties/test/application/loading_test.rb
  14. +1 −1 railties/test/application/middleware/best_practices_test.rb
  15. +1 −1 railties/test/application/middleware/cache_test.rb
  16. +1 −1 railties/test/application/middleware/cookies_test.rb
  17. +1 −1 railties/test/application/middleware/exceptions_test.rb
  18. +1 −1 railties/test/application/middleware/remote_ip_test.rb
  19. +1 −1 railties/test/application/middleware/sendfile_test.rb
  20. +1 −1 railties/test/application/middleware_test.rb
  21. +1 −1 railties/test/application/paths_test.rb
  22. +1 −1 railties/test/application/rack/logger_test.rb
  23. +1 −1 railties/test/application/rackup_test.rb
  24. +1 −1 railties/test/application/rake/migrations_test.rb
  25. +1 −1 railties/test/application/rake/notes_test.rb
  26. +1 −1 railties/test/application/rake_test.rb
  27. +1 −1 railties/test/application/route_inspect_test.rb
  28. +1 −1 railties/test/application/routing_test.rb
  29. +1 −1 railties/test/application/runner_test.rb
  30. +1 −1 railties/test/application/test_test.rb
  31. +1 −1 railties/test/application/url_generation_test.rb
  32. +2 −1 railties/test/isolation/abstract_unit.rb
  33. +1 −1 railties/test/railties/engine_test.rb
  34. +1 −1 railties/test/railties/mounted_engine_test.rb
  35. +1 −1 railties/test/railties/railtie_test.rb
@@ -2,7 +2,7 @@
require 'rack/test'
module ApplicationTests
- class AssetDebuggingTest < Test::Unit::TestCase
+ class AssetDebuggingTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods
@@ -4,7 +4,7 @@
require 'rack/test'
module ApplicationTests
- class AssetsTest < Test::Unit::TestCase
+ class AssetsTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods
@@ -1,7 +1,7 @@
require "abstract_unit"
module ApplicationTests
- class BuildOriginalPathTest < Test::Unit::TestCase
+ class BuildOriginalPathTest < ActiveSupport::TestCase
def test_include_original_PATH_info_in_ORIGINAL_FULLPATH
env = { 'PATH_INFO' => '/foo/' }
assert_equal "/foo/", Rails.application.send(:build_original_fullpath, env)
@@ -14,7 +14,7 @@ def self.delivered_email(email); email; end
class ::MyOtherMailObserver < ::MyMailObserver; end
module ApplicationTests
- class ConfigurationTest < Test::Unit::TestCase
+ class ConfigurationTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods
@@ -1,6 +1,6 @@
require 'isolation/abstract_unit'
-class ConsoleTest < Test::Unit::TestCase
+class ConsoleTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class GeneratorsTest < Test::Unit::TestCase
+ class GeneratorsTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class GemBooting < Test::Unit::TestCase
+ class GemBooting < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class FrameworksTest < Test::Unit::TestCase
+ class FrameworksTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class InitializersTest < Test::Unit::TestCase
+ class InitializersTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class I18nTest < Test::Unit::TestCase
+ class I18nTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class LoadPathTest < Test::Unit::TestCase
+ class LoadPathTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class NotificationsTest < Test::Unit::TestCase
+ class NotificationsTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,6 +1,6 @@
require 'isolation/abstract_unit'
-class LoadingTest < Test::Unit::TestCase
+class LoadingTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class BestPracticesTest < Test::Unit::TestCase
+ class BestPracticesTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class RoutingTest < Test::Unit::TestCase
+ class RoutingTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class CookiesTest < Test::Unit::TestCase
+ class CookiesTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def new_app
@@ -3,7 +3,7 @@
require 'rack/test'
module ApplicationTests
- class MiddlewareExceptionsTest < Test::Unit::TestCase
+ class MiddlewareExceptionsTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class RemoteIpTest < Test::Unit::TestCase
+ class RemoteIpTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class SendfileTest < Test::Unit::TestCase
+ class SendfileTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -3,7 +3,7 @@
require 'rack/test'
module ApplicationTests
- class MiddlewareTest < Test::Unit::TestCase
+ class MiddlewareTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class PathsTest < Test::Unit::TestCase
+ class PathsTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -4,7 +4,7 @@
module ApplicationTests
module RackTests
- class LoggerTest < Test::Unit::TestCase
+ class LoggerTest < ActiveSupport::TestCase
include ActiveSupport::LogSubscriber::TestHelper
include Rack::Test::Methods
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class RackupTest < Test::Unit::TestCase
+ class RackupTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def rackup
@@ -2,7 +2,7 @@
module ApplicationTests
module RakeTests
- class RakeMigrationsTest < Test::Unit::TestCase
+ class RakeMigrationsTest < ActiveSupport::TestCase
def setup
build_app
boot_rails
@@ -2,7 +2,7 @@
module ApplicationTests
module RakeTests
- class RakeNotesTest < Test::Unit::TestCase
+ class RakeNotesTest < ActiveSupport::TestCase
def setup
build_app
require "rails/all"
@@ -2,7 +2,7 @@
require "isolation/abstract_unit"
module ApplicationTests
- class RakeTest < Test::Unit::TestCase
+ class RakeTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -4,7 +4,7 @@
require 'rails/engine'
module ApplicationTests
- class RouteInspectTest < Test::Unit::TestCase
+ class RouteInspectTest < ActiveSupport::TestCase
def setup
@set = ActionDispatch::Routing::RouteSet.new
@inspector = Rails::Application::RouteInspector.new
@@ -2,7 +2,7 @@
require 'rack/test'
module ApplicationTests
- class RoutingTest < Test::Unit::TestCase
+ class RoutingTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include Rack::Test::Methods
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class RunnerTest < Test::Unit::TestCase
+ class RunnerTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class TestTest < Test::Unit::TestCase
+ class TestTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class UrlGenerationTest < Test::Unit::TestCase
+ class UrlGenerationTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def app
@@ -10,6 +10,7 @@
require 'test/unit'
require 'rubygems'
+require 'active_support/test_case'
# TODO: Remove setting this magic constant
RAILS_FRAMEWORK_ROOT = File.expand_path("#{File.dirname(__FILE__)}/../../..")
@@ -256,7 +257,7 @@ def boot_rails
end
end
-class Test::Unit::TestCase
+class ActiveSupport::TestCase
include TestHelpers::Paths
include TestHelpers::Rack
include TestHelpers::Generation
@@ -4,7 +4,7 @@
require "rack/test"
module RailtiesTest
- class EngineTest < Test::Unit::TestCase
+ class EngineTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
include SharedTests
@@ -1,7 +1,7 @@
require 'isolation/abstract_unit'
module ApplicationTests
- class ApplicationRoutingTest < Test::Unit::TestCase
+ class ApplicationRoutingTest < ActiveSupport::TestCase
require 'rack/test'
include Rack::Test::Methods
include ActiveSupport::Testing::Isolation
@@ -1,7 +1,7 @@
require "isolation/abstract_unit"
module RailtiesTest
- class RailtieTest < Test::Unit::TestCase
+ class RailtieTest < ActiveSupport::TestCase
include ActiveSupport::Testing::Isolation
def setup

0 comments on commit 8f309e3

Please sign in to comment.