From 3da164982817828aa5f7d9e2158c04ce40ee5f55 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 26 Nov 2012 09:18:41 -0200 Subject: Require active_model/railtie directly instead of rails/all Use Class.new with a block instead of tap to configure it. --- activemodel/test/cases/railtie_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activemodel/test/cases/railtie_test.rb b/activemodel/test/cases/railtie_test.rb index f89a288f8f..d44a3448df 100644 --- a/activemodel/test/cases/railtie_test.rb +++ b/activemodel/test/cases/railtie_test.rb @@ -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 -- cgit v1.2.3