[rubygems/rubygems] Added example for bundler/inline conflict

https://github.com/rubygems/rubygems/commit/6b1e8a14bd
This commit is contained in:
Hiroshi SHIBATA 2024-09-09 17:28:21 +09:00 committed by git
parent f8f9cecd70
commit 3725c388f8

View File

@ -655,4 +655,27 @@ RSpec.describe "bundler/inline#gemfile" do
expect(out).to include("before: [\"Test_Variable\"]")
expect(out).to include("after: [\"Test_Variable\"]")
end
it "does not load specified version of psych and stringio" do
build_repo4 do
build_gem "psych", "999"
build_gem "stringio", "999"
end
script <<-RUBY, env: { "BUNDLER_SPEC_GEM_REPO" => gem_repo4.to_s }
require "bundler/inline"
gemfile(true) do
source "https://gem.repo4"
gem "psych"
gem "stringio"
end
RUBY
expect(out).to include("Installing psych 999")
expect(out).to include("Installing stringio 999")
expect(out).to include("The psych gem was resolved to 999")
expect(out).to include("The stringio gem was resolved to 999")
end
end