summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2025-02-13 19:07:40 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2025-02-18 12:12:53 +0900
commit203a570f68b43ce591c5ef1784112725fa0692cd (patch)
tree223276caa6a4122513aea8b8a799269d3d85f67e /spec
parentc5cdabc14a28087eda121ee9735ce457bdcd8ab3 (diff)
[rubygems/rubygems] Add additional assertions to spec
To make it consistent with the spec above it. https://github.com/rubygems/rubygems/commit/9a00bf8db9
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/install/gems/flex_spec.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/bundler/install/gems/flex_spec.rb b/spec/bundler/install/gems/flex_spec.rb
index b7e1b5f1bd..522ee6b779 100644
--- a/spec/bundler/install/gems/flex_spec.rb
+++ b/spec/bundler/install/gems/flex_spec.rb
@@ -295,6 +295,30 @@ RSpec.describe "bundle flex_install" do
it "should work when you update" do
bundle "update myrack"
+
+ checksums = checksums_section_when_enabled do |c|
+ c.checksum gem_repo1, "myrack", "0.9.1"
+ c.checksum gem_repo1, "myrack-obama", "1.0"
+ end
+
+ expect(lockfile).to eq <<~L
+ GEM
+ remote: https://gem.repo1/
+ specs:
+ myrack (0.9.1)
+ myrack-obama (1.0)
+ myrack
+
+ PLATFORMS
+ #{lockfile_platforms}
+
+ DEPENDENCIES
+ myrack (= 0.9.1)
+ myrack-obama
+ #{checksums}
+ BUNDLED WITH
+ #{Bundler::VERSION}
+ L
end
end