Skip to content

Commit

Permalink
Fix const_get in test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Oct 31, 2019
1 parent 11aba35 commit cac0272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_digest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_digest_constants

algorithms.each do |name|
assert_not_nil(OpenSSL::Digest.new(name))
klass = OpenSSL::Digest.const_get(name)
klass = OpenSSL::Digest.const_get(name.tr('-', '_'))
assert_not_nil(klass.new)
end
end
Expand Down

0 comments on commit cac0272

Please sign in to comment.