diff options
-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 |