From 9a812d925b4941c30726c3de559ac320bc135495 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Wed, 7 Feb 2024 09:45:30 -0700 Subject: [PATCH] fix spec when local rubygems is misconfigured (#24) --- spec/bundler/multilock_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/bundler/multilock_spec.rb b/spec/bundler/multilock_spec.rb index a95ff93..271f283 100644 --- a/spec/bundler/multilock_spec.rb +++ b/spec/bundler/multilock_spec.rb @@ -635,7 +635,7 @@ it "installs missing deps from alternate lockfiles before syncing" do Bundler.with_unbundled_env do `gem uninstall activemodel -a --force 2> #{File::NULL}` - `gem install activemodel -v 6.1.7.6` + `gem install activemodel -s https://rubygems.org -v 6.1.7.6` end with_gemfile(<<~RUBY) do @@ -652,7 +652,7 @@ Bundler.with_unbundled_env do `gem uninstall activemodel -v 6.1.7.6 --force 2> #{File::NULL}` - `gem install activemodel -v 6.1.6` + `gem install activemodel -s https://rubygems.org -v 6.1.6` end expect { invoke_bundler("check") }.to raise_error(/The following gems are missing/)