summaryrefslogtreecommitdiff
path: root/spec/install/git_spec.rb
diff options
context:
space:
mode:
authorCarl Lerche <carllerche@mac.com>2010-07-15 10:29:18 -0700
committerCarl Lerche <carllerche@mac.com>2010-07-15 10:29:31 -0700
commitaebee5916f3613cfeec2d751d4db503388901a42 (patch)
tree9af3f4749c4e55791206040cd5473ea6e8a5a4f5 /spec/install/git_spec.rb
parentbf367148a45bfc56142db4d4fc32f137e1056f60 (diff)
downloadbundler-aebee5916f3613cfeec2d751d4db503388901a42.tar.gz
Don't remote fetch the git repository if the commit is available locally
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r--spec/install/git_spec.rb12
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