Skip to content

Commit 504a1ba

Browse files
hsbtmatzbot
authored andcommitted
[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. ruby/rubygems@fd2dcb502b
1 parent 1b57e55 commit 504a1ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec/bundler/commands/lock_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -313,22 +313,22 @@
313313

314314
it "updates a specific gem and write to a custom location" do
315315
build_repo4 do
316-
build_gem "uri", %w[1.0.2 1.0.3]
316+
build_gem "foo", %w[1.0.2 1.0.3]
317317
build_gem "warning", %w[1.4.0 1.5.0]
318318
end
319319

320320
gemfile <<~G
321321
source "https://gem.repo4"
322322
323-
gem "uri"
323+
gem "foo"
324324
gem "warning"
325325
G
326326

327327
lockfile <<~L
328328
GEM
329329
remote: https://gem.repo4
330330
specs:
331-
uri (1.0.2)
331+
foo (1.0.2)
332332
warning (1.4.0)
333333
334334
PLATFORMS
@@ -342,10 +342,10 @@
342342
#{Bundler::VERSION}
343343
L
344344

345-
bundle "lock --update uri --lockfile=lock"
345+
bundle "lock --update foo --lockfile=lock"
346346

347347
lockfile_content = read_lockfile("lock")
348-
expect(lockfile_content).to include("uri (1.0.3)")
348+
expect(lockfile_content).to include("foo (1.0.3)")
349349
expect(lockfile_content).to include("warning (1.4.0)")
350350
end
351351

0 commit comments

Comments
 (0)