Skip to content

Commit 697ed2b

Browse files
author
Thong Kuah
committed
Fix more specs
1 parent 51ce43a commit 697ed2b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

bundler/spec/commands/update_spec.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,11 @@
383383

384384
original_lockfile = lockfile
385385

386+
expected_checksums = construct_checksum_section do |c|
387+
c.repo_gem gem_repo4, "activesupport", "6.0.4.1"
388+
c.repo_gem gem_repo4, "tzinfo", "1.2.9"
389+
end
390+
386391
expected_lockfile = <<~L
387392
GEM
388393
remote: #{file_uri_for(gem_repo4)}/
@@ -397,6 +402,9 @@
397402
DEPENDENCIES
398403
activesupport (~> 6.0.0)
399404
405+
CHECKSUMS
406+
#{expected_checksums}
407+
400408
BUNDLED WITH
401409
#{Bundler::VERSION}
402410
L
@@ -1004,6 +1012,8 @@
10041012
10051013
DEPENDENCIES
10061014
1015+
CHECKSUMS
1016+
10071017
BUNDLED WITH
10081018
#{Bundler::VERSION}
10091019
L
@@ -1035,6 +1045,8 @@
10351045
10361046
DEPENDENCIES
10371047
1048+
CHECKSUMS
1049+
10381050
RUBY VERSION
10391051
#{Bundler::RubyVersion.system}
10401052
@@ -1075,6 +1087,8 @@
10751087
10761088
DEPENDENCIES
10771089
1090+
CHECKSUMS
1091+
10781092
RUBY VERSION
10791093
ruby 2.1.4p222
10801094
@@ -1100,6 +1114,8 @@
11001114
11011115
DEPENDENCIES
11021116
1117+
CHECKSUMS
1118+
11031119
RUBY VERSION
11041120
#{Bundler::RubyVersion.system}
11051121
@@ -1122,6 +1138,8 @@
11221138
G
11231139
lockfile lockfile.sub(/(^\s*)#{Bundler::VERSION}($)/, '\11.0.0\2')
11241140

1141+
excepted_checksum = checksum_for_repo_gem(gem_repo4, "rack", "1.0")
1142+
11251143
FileUtils.rm_r gem_repo4
11261144

11271145
bundle :update, :bundler => true, :artifice => "compact_index", :verbose => true
@@ -1139,6 +1157,9 @@
11391157
DEPENDENCIES
11401158
rack
11411159
1160+
CHECKSUMS
1161+
#{excepted_checksum}
1162+
11421163
BUNDLED WITH
11431164
#{Bundler::VERSION}
11441165
L
@@ -1174,6 +1195,9 @@
11741195
DEPENDENCIES
11751196
rack
11761197
1198+
CHECKSUMS
1199+
#{checksum_for_repo_gem(gem_repo4, "rack", "1.0")}
1200+
11771201
BUNDLED WITH
11781202
#{Bundler::VERSION}
11791203
L
@@ -1281,6 +1305,9 @@
12811305
DEPENDENCIES
12821306
rack
12831307
1308+
CHECKSUMS
1309+
#{checksum_for_repo_gem(gem_repo4, "rack", "1.0")}
1310+
12841311
BUNDLED WITH
12851312
2.3.0.dev
12861313
L
@@ -1320,6 +1347,9 @@
13201347
DEPENDENCIES
13211348
rack
13221349
1350+
CHECKSUMS
1351+
#{checksum_for_repo_gem(gem_repo4, "rack", "1.0")}
1352+
13231353
BUNDLED WITH
13241354
2.3.9
13251355
L

0 commit comments

Comments
 (0)