Skip to content
Browse files

Require active_model/railtie directly instead of rails/all

Use Class.new with a block instead of tap to configure it.
  • Loading branch information...
1 parent 02c30c6 commit 3da164982817828aa5f7d9e2158c04ce40ee5f55 @carlosantoniodasilva carlosantoniodasilva committed Nov 26, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activemodel/test/cases/railtie_test.rb
View
6 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

0 comments on commit 3da1649

Please sign in to comment.
Something went wrong with that request. Please try again.