From 7b16eb8c1e77fc57642f8e84ff977a322ab61032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 18 Oct 2024 18:50:27 +0200 Subject: [PATCH] [rubygems/rubygems] Change one `bundle check` spec to not touch the network https://github.com/rubygems/rubygems/commit/f4d31c0a97 --- spec/bundler/commands/check_spec.rb | 9 +++++++-- 1 file 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: "git@github.com: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.")