From 504a1ba7eec657c195450dda7625aa8825b2ecb9 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Mon, 27 Oct 2025 15:04:14 +0900 Subject: [ruby/rubygems] Use dummy gem instead of uri. If we install uri-1.0.4 as default gems. The example may be failed with version miss-match. https://github.com/ruby/rubygems/commit/fd2dcb502b --- spec/bundler/commands/lock_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/bundler/commands/lock_spec.rb b/spec/bundler/commands/lock_spec.rb index 36493e108a..b7f475f72a 100644 --- a/spec/bundler/commands/lock_spec.rb +++ b/spec/bundler/commands/lock_spec.rb @@ -313,14 +313,14 @@ RSpec.describe "bundle lock" do it "updates a specific gem and write to a custom location" do build_repo4 do - build_gem "uri", %w[1.0.2 1.0.3] + build_gem "foo", %w[1.0.2 1.0.3] build_gem "warning", %w[1.4.0 1.5.0] end gemfile <<~G source "https://gem.repo4" - gem "uri" + gem "foo" gem "warning" G @@ -328,7 +328,7 @@ RSpec.describe "bundle lock" do GEM remote: https://gem.repo4 specs: - uri (1.0.2) + foo (1.0.2) warning (1.4.0) PLATFORMS @@ -342,10 +342,10 @@ RSpec.describe "bundle lock" do #{Bundler::VERSION} L - bundle "lock --update uri --lockfile=lock" + bundle "lock --update foo --lockfile=lock" lockfile_content = read_lockfile("lock") - expect(lockfile_content).to include("uri (1.0.3)") + expect(lockfile_content).to include("foo (1.0.3)") expect(lockfile_content).to include("warning (1.4.0)") end -- cgit v1.2.3