From 2370e87ae0babf0fb4b21254c8120f7a93189d40 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 30 Sep 2009 12:05:34 -0700 Subject: 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. --- railties/test/boot_test.rb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'railties/test/boot_test.rb') diff --git a/railties/test/boot_test.rb b/railties/test/boot_test.rb index f8f6d8f225..1280d27ffe 100644 --- a/railties/test/boot_test.rb +++ b/railties/test/boot_test.rb @@ -48,13 +48,6 @@ class BootTest < Test::Unit::TestCase Rails::GemBoot.any_instance.expects(:run).returns('result') assert_equal 'result', Rails.boot! end - - def test_run_loads_initializer_and_sets_load_path - boot = Rails::Boot.new - boot.expects(:load_initializer) - Rails::Initializer.expects(:run).with(:set_load_path) - boot.run - end end class VendorBootTest < Test::Unit::TestCase @@ -63,7 +56,7 @@ class VendorBootTest < Test::Unit::TestCase def test_load_initializer_requires_from_vendor_rails boot = VendorBoot.new boot.expects(:require).with("rails") - Rails::Initializer.expects(:run).with(:install_gem_spec_stubs) + boot.expects(:install_gem_spec_stubs) Rails::GemDependency.expects(:add_frozen_gem_path) boot.load_initializer end -- cgit v1.2.3