summaryrefslogtreecommitdiff
path: root/spec/install/git_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r--spec/install/git_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/install/git_spec.rb b/spec/install/git_spec.rb
index 07b041108d..fa709951d7 100644
--- a/spec/install/git_spec.rb
+++ b/spec/install/git_spec.rb
@@ -48,6 +48,16 @@ describe "gemfile install with git sources" do
bundle "exec foobar"
out.should == "1.0"
end
+
+ it "complains if pinned specs don't exist in the git repo" do
+ build_git "foo"
+
+ install_gemfile <<-G
+ gem "foo", "1.1", :git => "#{lib_path('foo-1.0')}"
+ G
+
+ out.should include("Source contains 'foo' at: 1.0")
+ end
end
describe "when specifying a revision" do