diff options
author | Hiroshi SHIBATA <[email protected]> | 2022-12-20 09:43:53 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2022-12-20 13:15:02 +0900 |
commit | 18ba89093a0b214cd89f1567c037c239f094496d (patch) | |
tree | bb4e07c66cca5fd2da04da297e8c66fbf883fdad /spec/bundler/lock/git_spec.rb | |
parent | ad1f61fe80dea7a1b1e8d27a4232d7b10b820960 (diff) |
Merge RubyGems/Bundler master
Pick from https://github.com/rubygems/rubygems/commit/ba3adad4d80038ffd7bea015da2f11d3e8a2ff82
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6966
Diffstat (limited to 'spec/bundler/lock/git_spec.rb')
-rw-r--r-- | spec/bundler/lock/git_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/bundler/lock/git_spec.rb b/spec/bundler/lock/git_spec.rb index 28d167b773..df9d71fdd6 100644 --- a/spec/bundler/lock/git_spec.rb +++ b/spec/bundler/lock/git_spec.rb @@ -22,6 +22,17 @@ RSpec.describe "bundle lock with git gems" do expect(err).to be_empty end + it "prints a proper error when changing a locked Gemfile to point to a bad branch" do + gemfile <<-G + source "#{file_uri_for(gem_repo1)}" + gem 'foo', :git => "#{lib_path("foo-1.0")}", :branch => "bad" + G + + bundle "lock --update foo", :raise_on_error => false + + expect(err).to include("Revision bad does not exist in the repository") + end + it "locks a git source to the current ref" do update_git "foo" bundle :install |