Railtie should always be defined here

This commit is contained in:
Akira Matsuda 2016-10-24 23:07:31 +09:00
parent 8ed2f84c2d
commit 103228bd03
1 changed files with 2 additions and 4 deletions

View File

@ -14,11 +14,9 @@ require 'database_cleaner'
# Simulate a gem providing a subclass of ActiveRecord::Base before the Railtie is loaded.
require 'fake_gem'
if defined? ::Rails::Railtie
require 'fake_app/rails_app'
require 'fake_app/rails_app'
require 'rspec/rails'
end
require 'rspec/rails'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.