diff options
author | Carl Lerche <carllerche@mac.com> | 2010-02-05 22:36:45 -0800 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-02-05 22:36:45 -0800 |
commit | 2b2d3f2dd229d9ea5c2220199c3858377a4f5d61 (patch) | |
tree | e68fa00d5cfc5be48719dc49c0cdbac342485367 /spec/install/git_spec.rb | |
parent | 92847ecb4165b62b78eb9bdbcc23e5d0a43566d3 (diff) | |
download | bundler-0.9.3.tar.gz |
Output a better error if a pinned dependency does not actually contain the requested gem in the source.0.9.3
Diffstat (limited to 'spec/install/git_spec.rb')
-rw-r--r-- | spec/install/git_spec.rb | 10 |
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 |