summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2016-05-31 12:31:46 -0700
committerAndre Arko <andre@arko.net>2016-05-31 12:31:46 -0700
commit870c3bd6db174f0cf2326dcf2e63afab4b717a9d (patch)
tree0c8d81c21431cf1b25214eaace26ec097ef4777c
parent15a9b12653fe2ed13675204022479b7c8813ed96 (diff)
downloadbundler-870c3bd6db174f0cf2326dcf2e63afab4b717a9d.tar.gz
we don’t copy from local cache anymore
locally cached gems have no attached source information, so it’s not safe to blindly copy them.
-rw-r--r--spec/commands/install_spec.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/spec/commands/install_spec.rb b/spec/commands/install_spec.rb
index 59f418ac0a..4a47d64b41 100644
--- a/spec/commands/install_spec.rb
+++ b/spec/commands/install_spec.rb
@@ -506,23 +506,6 @@ describe "bundle install with gem sources" do
expect(cached_rack).to exist
end
- it "copies gems from the local cache to the global cache" do
- gemfile <<-G
- source "#{source}"
- gem "rack"
- G
-
- bundle :install, :artifice => "endpoint"
- bundle :cache
- FileUtils.rm_r(default_bundle_path)
- FileUtils.rm_r(download_cache(source))
- expect(cached_gem("rack-1.0.0")).to exist
-
- bundle :install, :artifice => "endpoint_no_gem"
- should_be_installed "rack 1.0.0"
- expect(download_cache(source, "rack-1.0.0.gem")).to exist
- end
-
describe "when the same gem from different sources is installed" do
it "should use the appropriate one from the global cache" do
gemfile <<-G