aboutsummaryrefslogtreecommitdiffstats
path: root/spec/install
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2014-02-06 10:14:31 +0200
committerAndre Arko <andre@arko.net>2014-02-06 10:37:35 +0200
commit4667c8542611cec14559c33e6a05f8811d5736e7 (patch)
tree8c23e130f162dee2d99e435b0df63faaf40c9878 /spec/install
parent8897c778aab035dc95aed6ea7379e23b90abcafa (diff)
downloadbundler-4667c8542611cec14559c33e6a05f8811d5736e7.tar.gz
Revert "reinstalls gem if gem dir is missing but spec exists"
It turns out that this has some pretty extensive repurcussions, and makes it impossible to use Bundler in some specific circumstances, like with gems that ship with Ruby, and with gems that are installed by distro packages. It also breaks the `bundle pack` command, because the gems that are cached by the pack command are not found by this check. See also: https://github.com/bundler/bundler/issues/2854 https://github.com/bundler/bundler/issues/2818 https://github.com/bundler/bundler/issues/2780 This reverts commit bd0243ee3396a74227dec330c8a2c159deccb5a7.
Diffstat (limited to 'spec/install')
-rw-r--r--spec/install/gems/simple_case_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb
index 431cdc23..505e3d1f 100644
--- a/spec/install/gems/simple_case_spec.rb
+++ b/spec/install/gems/simple_case_spec.rb
@@ -337,22 +337,6 @@ describe "bundle install with gem sources" do
G
expect(exitstatus).to eq(0)
end
-
- it "reinstalls the gem if the gem dir is missing but the specification file exists" do
- gemfile(<<-G)
- source "file://#{gem_repo1}"
-
- gem 'foo'
- G
-
- bundle "install --path vendor/bundle"
-
- FileUtils.rm_rf(vendored_gems('gems/foo-1.0'))
-
- bundle "install"
-
- expect(vendored_gems('gems/foo-1.0')).to exist
- end
end
describe "when Bundler root contains regex chars" do