Skip to content

Commit

Permalink
fix spec when local rubygems is misconfigured (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer authored Feb 7, 2024
1 parent 2c1406e commit 9a812d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/bundler/multilock_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/)
Expand Down

0 comments on commit 9a812d9

Please sign in to comment.