mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Hack in env variable setting for Dependencies.mechanism
This commit is contained in:
parent
f3f5f40e44
commit
4b921a5bdf
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ module ActiveSupport #:nodoc:
|
|||
|
||||
# Should we load files or require them?
|
||||
mattr_accessor :mechanism
|
||||
self.mechanism = :load
|
||||
self.mechanism = ENV['NO_RELOAD'] ? :require : :load
|
||||
|
||||
# The set of directories from which we may automatically load files. Files
|
||||
# under these directories will be reloaded on each request in development mode,
|
||||
|
|
|
@ -4,6 +4,7 @@ require 'test/unit'
|
|||
gem 'mocha', '>= 0.9.5'
|
||||
require 'mocha'
|
||||
|
||||
ENV['NO_RELOAD'] = '1'
|
||||
$:.unshift "#{File.dirname(__FILE__)}/../lib"
|
||||
require 'active_support'
|
||||
require 'active_support/test_case'
|
||||
|
|
Loading…
Reference in a new issue