Permalink
Browse files

Autoload AMo test case

  • Loading branch information...
1 parent 2601a16 commit 640d9e7e32d9ad67cf81a686aad80266fee7fa61 @josh josh committed Jan 4, 2010
@@ -30,10 +30,12 @@ module ActiveModel
extend ActiveSupport::Autoload
autoload :AttributeMethods
+ autoload :BlockValidator, 'active_model/validator'
autoload :Callbacks
autoload :Conversion
autoload :DeprecatedErrorMethods
autoload :Dirty
+ autoload :EachValidator, 'active_model/validator'
autoload :Errors
autoload :Lint
autoload :Name, 'active_model/naming'
@@ -42,12 +44,11 @@ module ActiveModel
autoload :Observing
autoload :Serialization
autoload :StateMachine
+ autoload :TestCase
autoload :Translation
+ autoload :VERSION
autoload :Validations
autoload :Validator
- autoload :EachValidator, 'active_model/validator'
- autoload :BlockValidator, 'active_model/validator'
- autoload :VERSION
module Serializers
extend ActiveSupport::Autoload
@@ -8,7 +8,6 @@
require 'config'
require 'active_model'
-require 'active_model/test_case'
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
@@ -10,7 +10,6 @@
require 'test/unit'
require 'active_resource'
require 'active_support'
-require 'active_model/test_case'
$:.unshift "#{File.dirname(__FILE__)}/../test"
require 'setter_trap'
@@ -8,8 +8,6 @@
require 'test/unit'
require 'active_support/core_ext/kernel/requires'
-require 'active_model/test_case' if defined?(ActiveModel)
-
if defined?(ActiveRecord)
require 'active_record/test_case'
require 'active_record/fixtures'

0 comments on commit 640d9e7

Please sign in to comment.