Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Autoload AS test case

  • Loading branch information...
commit 2601a16ede92566c651c06942294250ea653bd85 1 parent ce56c36
@josh josh authored
View
3  actionmailer/lib/action_mailer/test_case.rb
@@ -1,6 +1,3 @@
-require 'active_support/test_case'
-require 'action_mailer/base'
-
module ActionMailer
class NonInferrableMailerError < ::StandardError
def initialize(name)
View
1  actionpack/lib/action_controller/test_case.rb
@@ -1,4 +1,3 @@
-require 'active_support/test_case'
require 'rack/session/abstract/id'
module ActionController
View
1  actionpack/lib/action_dispatch/testing/integration.rb
@@ -1,6 +1,5 @@
require 'stringio'
require 'uri'
-require 'active_support/test_case'
require 'active_support/core_ext/object/metaclass'
require 'rack/test'
View
2  actionpack/lib/action_view/test_case.rb
@@ -1,5 +1,3 @@
-require 'active_support/test_case'
-
module ActionView
class Base
alias_method :initialize_without_template_tracking, :initialize
View
1  actionpack/test/abstract_unit.rb
@@ -19,7 +19,6 @@
require 'action_view/base'
require 'action_dispatch'
require 'fixture_template'
-require 'active_support/test_case'
require 'active_support/dependencies'
activemodel_path = File.expand_path('../../../activemodel/lib', __FILE__)
View
2  activemodel/lib/active_model/test_case.rb
@@ -1,5 +1,3 @@
-require "active_support/test_case"
-
module ActiveModel #:nodoc:
class TestCase < ActiveSupport::TestCase #:nodoc:
def with_kcode(kcode)
View
1  activerecord/lib/active_record/fixtures.rb
@@ -3,7 +3,6 @@
require 'csv'
require 'zlib'
require 'active_support/dependencies'
-require 'active_support/test_case'
require 'active_support/core_ext/logger'
if RUBY_VERSION < '1.9'
View
2  activerecord/lib/active_record/test_case.rb
@@ -1,5 +1,3 @@
-require "active_support/test_case"
-
module ActiveRecord
class TestCase < ActiveSupport::TestCase #:nodoc:
def assert_date_from_db(expected, actual, message = nil)
View
1  activeresource/test/abstract_unit.rb
@@ -10,7 +10,6 @@
require 'test/unit'
require 'active_resource'
require 'active_support'
-require 'active_support/test_case'
require 'active_model/test_case'
$:.unshift "#{File.dirname(__FILE__)}/../test"
View
2  activesupport/lib/active_support.rb
@@ -66,6 +66,8 @@ module ActiveSupport
autoload :StringInquirer
autoload :XmlMini
end
+
+ autoload :TestCase
end
require 'active_support/vendor'
View
1  activesupport/test/abstract_unit.rb
@@ -13,7 +13,6 @@
ENV['NO_RELOAD'] = '1'
require 'active_support'
-require 'active_support/test_case'
# Include shims until we get off 1.8.6
require 'active_support/ruby/shim'
View
1  railties/lib/rails/console_app.rb
@@ -1,5 +1,4 @@
require 'active_support/all'
-require 'active_support/test_case'
require 'action_controller'
# work around the at_exit hook in test/unit, which kills IRB
View
9 railties/lib/rails/generators/test_case.rb
@@ -1,4 +1,3 @@
-require 'active_support/test_case'
require 'active_support/core_ext/class/inheritable_attributes'
require 'active_support/core_ext/hash/reverse_merge'
require 'rails/generators'
@@ -76,7 +75,7 @@ def capture(stream)
eval "$#{stream} = StringIO.new"
yield
result = eval("$#{stream}").string
- ensure
+ ensure
eval("$#{stream} = #{stream.upcase}")
end
@@ -137,9 +136,9 @@ def assert_no_file(relative)
#
# assert_migration "db/migrate/create_products.rb"
#
- # This method manipulates the given path and tries to find any migration which
+ # This method manipulates the given path and tries to find any migration which
# matches the migration name. For example, the call above is converted to:
- #
+ #
# assert_file "db/migrate/003_create_products.rb"
#
# Consequently, assert_migration accepts the same arguments has assert_file.
@@ -236,4 +235,4 @@ def migration_file_name(relative) #:nodoc:
end
end
end
-end
+end
View
2  railties/lib/rails/generators/test_unit/plugin/templates/test_helper.rb
@@ -1,5 +1,3 @@
require 'rubygems'
require 'test/unit'
require 'active_support'
-require 'active_support/test_case'
-
View
1  railties/test/abstract_unit.rb
@@ -17,7 +17,6 @@
require 'active_support'
require 'active_support/core_ext/logger'
-require 'active_support/test_case'
require 'action_controller'
require 'rails/all'
Please sign in to comment.
Something went wrong with that request. Please try again.