diff options
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 afa57254f1..a8ba290c83 100644 --- a/spec/install/git_spec.rb +++ b/spec/install/git_spec.rb @@ -386,4 +386,16 @@ describe "bundle install with git sources" do out.should == "WIN" end + it "does not to a remote fetch if the revision is cached locally" do + build_git "foo" + + install_gemfile <<-G + gem "foo", :git => "#{lib_path('foo-1.0')}" + G + + FileUtils.rm_rf(lib_path('foo-1.0')) + + bundle "install" + out.should_not =~ /updating/i + end end |