diff options
author | Carl Lerche <carllerche@mac.com> | 2009-09-30 12:05:34 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2009-09-30 12:05:34 -0700 |
commit | 2370e87ae0babf0fb4b21254c8120f7a93189d40 (patch) | |
tree | 163ba90026e407ff88ce2c2a71c723012e85bbda /railties/test/isolation | |
parent | 34aae6d739918d972e5273b56c767dae76aa7c00 (diff) | |
download | rails-2370e87ae0babf0fb4b21254c8120f7a93189d40.tar.gz rails-2370e87ae0babf0fb4b21254c8120f7a93189d40.tar.bz2 rails-2370e87ae0babf0fb4b21254c8120f7a93189d40.zip |
Remove all calls to Rails::Initializer from boot.rb
This is starting a refactor of the rails initialization process. The boot.rb file will not remain the same.
Diffstat (limited to 'railties/test/isolation')
-rw-r--r-- | railties/test/isolation/abstract_unit.rb | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/railties/test/isolation/abstract_unit.rb b/railties/test/isolation/abstract_unit.rb index bc1b43acaa..869e8429cf 100644 --- a/railties/test/isolation/abstract_unit.rb +++ b/railties/test/isolation/abstract_unit.rb @@ -97,20 +97,16 @@ module TestHelpers end def boot_rails - # return if defined?(RAILS) - # TODO: Get this working with boot.rb - $:.unshift "#{RAILS_FRAMEWORK_ROOT}/railties/lib" - Object.class_eval <<-RUBY - RAILS_ROOT = "#{app_path}" - module ::Rails - def self.vendor_rails? - true - end + # TMP mega hax to prevent boot.rb from actually booting + Object.class_eval <<-RUBY, __FILE__, __LINE__+1 + module Rails + Initializer = 'lol' + require "#{app_path}/config/boot" + remove_const(:Initializer) + booter = VendorBoot.new + booter.run end RUBY - require "rails" - Rails::Initializer.run(:install_gem_spec_stubs) - Rails::GemDependency.add_frozen_gem_path end end end |