diff options
author | Terence Lee <hone02@gmail.com> | 2013-12-20 22:17:02 -0500 |
---|---|---|
committer | Terence Lee <hone02@gmail.com> | 2013-12-24 22:40:38 -0500 |
commit | bd0243ee3396a74227dec330c8a2c159deccb5a7 (patch) | |
tree | eb6c224b793524680e43dc118beb5b95d1032b25 /spec/install | |
parent | 348fa0d6ba16f3f50985f47c71e1e8869dd6e5bf (diff) | |
download | bundler-bd0243ee3396a74227dec330c8a2c159deccb5a7.tar.gz |
reinstalls gem if gem dir is missing but spec exists
Conflicts:
lib/bundler/source/rubygems.rb
Diffstat (limited to 'spec/install')
-rw-r--r-- | spec/install/gems/simple_case_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/install/gems/simple_case_spec.rb b/spec/install/gems/simple_case_spec.rb index 4c38e77b..f147b35b 100644 --- a/spec/install/gems/simple_case_spec.rb +++ b/spec/install/gems/simple_case_spec.rb @@ -337,6 +337,22 @@ 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 |