1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use build_message on test_securerandom.rb (#3543)

* Revert "Revert "[ruby/securerandom] Use build_message instead of message for test-unit""
* [ruby/securerandom] Fixed the wrong usage of build_message
This commit is contained in:
Hiroshi SHIBATA 2020-09-16 07:45:01 +09:00 committed by GitHub
parent 1af0319fc8
commit 344304c89f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: git 2020-09-16 07:45:28 +09:00
Merged-By: hsbt <hsbt@ruby-lang.org>

View file

@ -175,7 +175,7 @@ end
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