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:
commit
12ba34e11a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue