mirror of https://github.com/rails/rails
Merge pull request #3181 from yahonda/fix_uninitialized_constant_testfixtures
Modified how to handle if ActiveRecord is defined.
This commit is contained in:
commit
926e97ca66
|
@ -24,7 +24,7 @@ if defined?(MiniTest)
|
|||
end
|
||||
end
|
||||
|
||||
if defined?(ActiveRecord)
|
||||
if defined?(ActiveRecord::Base)
|
||||
require 'active_record/test_case'
|
||||
|
||||
class ActiveSupport::TestCase
|
||||
|
|
Loading…
Reference in New Issue