diff options
author | Carl Lerche <carllerche@mac.com> | 2010-07-20 21:16:38 -0700 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-07-20 21:16:38 -0700 |
commit | 24dc61a64fc92a485eded6a2108fa65346c98b8e (patch) | |
tree | 4ad63f872a7445b5c69eaf08879b6074e30eb2bd /spec/install/git_spec.rb | |
parent | ab3173ebc1b2657de4309b3eaadb3038dea4bc4c (diff) | |
download | bundler-24dc61a64fc92a485eded6a2108fa65346c98b8e.tar.gz |
Fix a bug where bundle installs spews errors when it is run multiple times in a row with a git source
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r-- | spec/install/git_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb index a40f5bbd12..e02a2ad44e 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -398,4 +398,16 @@ describe "bundle install with git sources" do bundle "install" out.should_not =~ /updating/i end + + it "doesn't blow up if bundle install is run twice in a row" do + build_git "foo" + + gemfile <<-G + gem "foo", :git => "#{lib_path('foo-1.0')}" + G + + bundle "install" + bundle "install", :exit_status => true + exitstatus.should == 0 + end end |