diff options
author | Asutosh Palai <asupalai@gmail.com> | 2016-03-11 17:53:24 +0530 |
---|---|---|
committer | Asutosh Palai <asupalai@gmail.com> | 2016-03-11 19:40:24 +0530 |
commit | 4114f81b3148c9c106e8c164acd7f6c990cdb1ce (patch) | |
tree | 5a487bc10715a9ce9c22cd6eda9dde458160c558 | |
parent | 2aa6108c33960e383ccaa921e886f55182034a74 (diff) | |
download | bundler-4114f81b3148c9c106e8c164acd7f6c990cdb1ce.tar.gz |
Added failing test for #3981
-rw-r--r-- | spec/install/git_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index f3a1983740..bae099a518 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -14,5 +14,30 @@ describe "bundle install" do expect(out).to include("Using foo 1.0 from #{lib_path("foo")} (at master@#{revision_for(lib_path("foo"))[0..6]})") should_be_installed "foo 1.0" end + + it "should check out git repos that are missing but not being installed" do + build_git "foo" + + gemfile <<-G + gem "foo", :git =>"file://#{lib_path("foo-1.0")}", group: :development + G + + lockfile <<-L + GIT + remote: file://#{lib_path("foo-1.0")} + specs: + foo (1.0) + + PLATFORMS + ruby + + DEPENDENCIES + foo! + L + + bundle "install --path=vendor/bundle --without development" + + expect(out).to include("Bundle complete!") + end end end |