Skip to content
This repository
Browse code

Vendored gem paths now being loaded if they exist [#2204 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
commit 9d906707bea997016fd370e33e12dbc21cfcc531 1 parent 5f1d646
John Dzak authored March 12, 2009 lifo committed March 13, 2009
1  railties/environments/boot.rb
@@ -44,6 +44,7 @@ class VendorBoot < Boot
44 44
     def load_initializer
45 45
       require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
46 46
       Rails::Initializer.run(:install_gem_spec_stubs)
  47
+      Rails::GemDependency.add_frozen_gem_path
47 48
     end
48 49
   end
49 50
 
2  railties/test/boot_test.rb
@@ -62,6 +62,8 @@ class VendorBootTest < Test::Unit::TestCase
62 62
   def test_load_initializer_requires_from_vendor_rails
63 63
     boot = VendorBoot.new
64 64
     boot.expects(:require).with("#{RAILS_ROOT}/vendor/rails/railties/lib/initializer")
  65
+    Rails::Initializer.expects(:run).with(:install_gem_spec_stubs)
  66
+    Rails::GemDependency.expects(:add_frozen_gem_path)
65 67
     boot.load_initializer
66 68
   end
67 69
 end

0 notes on commit 9d90670

Please sign in to comment.
Something went wrong with that request. Please try again.