diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-01-04 00:56:54 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-01-04 14:59:17 +0900 |
commit | 8f9623741a2cfe8d26af44c3a4f13dffc88fe834 (patch) | |
tree | a187268a6a5ea432756454b5159cdaa3808351c7 /spec/bundler/bundler/gem_helper_spec.rb | |
parent | c2e8e1f6a43b867c8e08efa55467bcabd0f6ab6b (diff) |
[rubygems/rubygems] Append a newline to the checksum file
https://github.com/rubygems/rubygems/commit/48ea2778e9
Diffstat (limited to 'spec/bundler/bundler/gem_helper_spec.rb')
-rw-r--r-- | spec/bundler/bundler/gem_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundler/gem_helper_spec.rb b/spec/bundler/bundler/gem_helper_spec.rb index f1bb9861cf..59feb5b8e9 100644 --- a/spec/bundler/bundler/gem_helper_spec.rb +++ b/spec/bundler/bundler/gem_helper_spec.rb @@ -172,7 +172,7 @@ RSpec.describe Bundler::GemHelper do it "calculates SHA512 of the content" do subject.build_checksum(Pathname(IO::NULL)) sha_path = app_path.join("checksums", "#{File.basename(IO::NULL)}.sha512") - expect(File.read(sha_path)).to eql(Digest::SHA512.hexdigest("")) + expect(File.read(sha_path).chomp).to eql(Digest::SHA512.hexdigest("")) end context "when build was successful" do |