mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Require active_model/railtie directly instead of rails/all
Use Class.new with a block instead of tap to configure it.
This commit is contained in:
parent
02c30c6426
commit
3da1649828
1 changed files with 3 additions and 3 deletions
|
@ -5,10 +5,10 @@ class RailtieTest < ActiveModel::TestCase
|
|||
include ActiveSupport::Testing::Isolation
|
||||
|
||||
def setup
|
||||
require 'rails/all'
|
||||
require 'active_model/railtie'
|
||||
|
||||
@app ||= Class.new(::Rails::Application).tap do |app|
|
||||
app.config.eager_load = false
|
||||
@app ||= Class.new(::Rails::Application) do
|
||||
config.eager_load = false
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue