1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Merge pull request #442 from FM-Systems/restrict_test_dependencies

restrict inclusion of test dependencies to test environment only
This commit is contained in:
Andrew Haines 2013-01-29 04:33:56 -08:00
commit 12ba34e11a

View file

@ -17,7 +17,7 @@ module Draper
config.after_initialize do |app| config.after_initialize do |app|
app.config.paths.add 'app/decorators', eager_load: true app.config.paths.add 'app/decorators', eager_load: true
unless Rails.env.production? if Rails.env.test?
require 'draper/test_case' require 'draper/test_case'
require 'draper/test/rspec_integration' if defined?(RSpec) and RSpec.respond_to?(:configure) require 'draper/test/rspec_integration' if defined?(RSpec) and RSpec.respond_to?(:configure)
require 'draper/test/minitest_integration' if defined?(MiniTest::Rails) require 'draper/test/minitest_integration' if defined?(MiniTest::Rails)