aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/boot_test.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2009-09-30 12:05:34 -0700
committerCarl Lerche <carllerche@mac.com>2009-09-30 12:05:34 -0700
commit2370e87ae0babf0fb4b21254c8120f7a93189d40 (patch)
tree163ba90026e407ff88ce2c2a71c723012e85bbda /railties/test/boot_test.rb
parent34aae6d739918d972e5273b56c767dae76aa7c00 (diff)
downloadrails-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/boot_test.rb')
-rw-r--r--railties/test/boot_test.rb9
1 files changed, 1 insertions, 8 deletions
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