summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2025-10-27 15:04:14 +0900
committergit <svn-admin@ruby-lang.org>2025-10-27 07:33:44 +0000
commit504a1ba7eec657c195450dda7625aa8825b2ecb9 (patch)
tree72f7c3862ca9b855734c22f11f1750c2107a7bc4
parent1b57e5574df360340cfe8511ba58d27a22226183 (diff)
[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
-rw-r--r--spec/bundler/commands/lock_spec.rb10
1 files 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