Skip to content

Commit

Permalink
Use build_message on test_securerandom.rb (#3543)
Browse files Browse the repository at this point in the history
* Revert "Revert "[ruby/securerandom] Use build_message instead of message for test-unit""
* [ruby/securerandom] Fixed the wrong usage of build_message
  • Loading branch information
hsbt committed Sep 15, 2020
1 parent 1af0319 commit 344304c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_securerandom.rb
Expand Up @@ -175,7 +175,7 @@ def remove_feature(basename)
end

def assert_in_range(range, result, mesg = nil)
assert(range.cover?(result), message(mesg) {"Expected #{result} to be in #{range}"})
assert(range.cover?(result), build_message(mesg, "Expected #{result} to be in #{range}"))
end

def test_with_openssl
Expand Down

0 comments on commit 344304c

Please sign in to comment.