ActiveRecord should always be defined here
This commit is contained in:
parent
a2ed627740
commit
8ed2f84c2d
|
@ -12,7 +12,7 @@ require 'capybara/rspec'
|
||||||
require 'database_cleaner'
|
require 'database_cleaner'
|
||||||
|
|
||||||
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
|
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
|
||||||
require 'fake_gem' if defined? ActiveRecord
|
require 'fake_gem'
|
||||||
|
|
||||||
if defined? ::Rails::Railtie
|
if defined? ::Rails::Railtie
|
||||||
require 'fake_app/rails_app'
|
require 'fake_app/rails_app'
|
||||||
|
|
Loading…
Reference in New Issue