diff options
author | David RodrÃguez <[email protected]> | 2024-10-18 18:50:27 +0200 |
---|---|---|
committer | git <[email protected]> | 2024-10-22 08:42:14 +0000 |
commit | 7b16eb8c1e77fc57642f8e84ff977a322ab61032 (patch) | |
tree | efad30d3cc3b2469827876e7f84ac2456ab3bee6 /spec/bundler/commands/check_spec.rb | |
parent | dcf3add96bd6e117435c568e78be59bb7ecad701 (diff) |
[rubygems/rubygems] Change one `bundle check` spec to not touch the network
https://github.com/rubygems/rubygems/commit/f4d31c0a97
Diffstat (limited to 'spec/bundler/commands/check_spec.rb')
-rw-r--r-- | spec/bundler/commands/check_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/bundler/commands/check_spec.rb b/spec/bundler/commands/check_spec.rb index b5bb29ff41..78c2aef58b 100644 --- a/spec/bundler/commands/check_spec.rb +++ b/spec/bundler/commands/check_spec.rb @@ -86,11 +86,16 @@ RSpec.describe "bundle check" do end it "prints a generic error if gem git source is not checked out" do - gemfile <<-G + build_git "foo", path: lib_path("foo") + + bundle "config path vendor/bundle" + + install_gemfile <<-G source "https://gem.repo1" - gem "rails", git: "[email protected]:rails/rails.git" + gem "foo", git: "#{lib_path("foo")}" G + FileUtils.rm_rf bundled_app("vendor/bundle") bundle :check, raise_on_error: false expect(exitstatus).to eq 1 expect(err).to include("Bundler can't satisfy your Gemfile's dependencies.") |