diff options
Diffstat (limited to 'spec/bundler/git_spec.rb')
-rw-r--r-- | spec/bundler/git_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/bundler/git_spec.rb b/spec/bundler/git_spec.rb index 1cb59d5ba3..21a2d9e91e 100644 --- a/spec/bundler/git_spec.rb +++ b/spec/bundler/git_spec.rb @@ -99,6 +99,18 @@ describe "Getting gems from git" do out.should == "1.0\n1.0" end + it "raises exception when git does not contain correct gem version" do + build_lib "omg", "1.0.2", :gemspec => true + gitify tmp_path("libs") + + lambda do + install_manifest <<-Gemfile + clear_sources + gem "omg", "~> 1.1", :git => "#{tmp_path("libs")}" + Gemfile + end.should raise_error(Bundler::GemNotFound, /git/) + end + it "allows bundling a specific tag" do path = build_git_repo "very-simple", :with => fixture_dir.join("very-simple") install_manifest <<-Gemfile |