Skip to content

Commit

Permalink
Merge pull request #3197 from rubygems/compare-utf8-subject
Browse files Browse the repository at this point in the history
Use recommended to_utf8 method when comparing cert subject.
  • Loading branch information
simi committed Sep 1, 2022
2 parents 39502e4 + ff7e75a commit 58bc96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/pusher_test.rb
Expand Up @@ -582,7 +582,7 @@ def two_cert_chain(signing_key:, root_not_before: Time.current, cert_not_before:
assert_not_nil @cutter.version
assert_not_nil @cutter.version.cert_chain
assert_equal 1, @cutter.version.cert_chain.size
assert_equal "/CN=snakeoil/DC=example/DC=invalid", @cutter.version.cert_chain.first.subject.to_s
assert_equal "CN=snakeoil/DC=example/DC=invalid", @cutter.version.cert_chain.first.subject.to_utf8
end

teardown { RubygemFs.mock! }
Expand Down

0 comments on commit 58bc96d

Please sign in to comment.