1
0
Fork 0
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:
Carlos Antonio da Silva 2012-11-26 09:18:41 -02:00
parent 02c30c6426
commit 3da1649828

View file

@ -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