diff --git a/railties/lib/rails/test_help.rb b/railties/lib/rails/test_help.rb index 68f566274df..8d0d8cacac1 100644 --- a/railties/lib/rails/test_help.rb +++ b/railties/lib/rails/test_help.rb @@ -24,7 +24,7 @@ if defined?(MiniTest) end end -if defined?(ActiveRecord) +if defined?(ActiveRecord::Base) require 'active_record/test_case' class ActiveSupport::TestCase