Permalink
Browse files

Make sure that gems are not reinstalled if they are packed and alread…

…y on the system.
  • Loading branch information...
1 parent c9a5f7b commit 9cd7f5befe395b204fc49d5f3316a6b5a245e16a Carl Lerche committed Feb 23, 2010
Showing with 15 additions and 0 deletions.
  1. +15 −0 spec/cache/gems_spec.rb
View
@@ -21,6 +21,21 @@
should_be_installed("rack 1.0.0")
end
+
+ it "does not reinstall gems from the cache if they exist on the system" do
+ system_gems "rack-1.0.0"
+ build_gem "rack", "1.0.0", :path => bundled_app('vendor/cache') do |s|
+ s.write "lib/rack.rb", "RACK = 'FAIL'"
+ end
+
+ install_gemfile <<-G
+ gem "rack"
+ G
+
+ puts out
@indirect

indirect Feb 23, 2010

Owner

puts out, really?

+
+ should_be_installed("rack 1.0.0")
+ end
end
describe "when there are also git sources" do

0 comments on commit 9cd7f5b

Please sign in to comment.