summaryrefslogtreecommitdiff
path: root/test/test_securerandom.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-09-16 07:45:01 +0900
committerGitHub <noreply@github.com>2020-09-16 07:45:01 +0900
commit344304c89f956bdf269b5424ae091f6928b678bb (patch)
tree755c3774252879d1248bff5a58fd3f1811a3a89a /test/test_securerandom.rb
parent1af0319fc88688bc5dd5e49eecdb8b534ead9991 (diff)
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
Notes
Notes: Merged-By: hsbt <hsbt@ruby-lang.org>
Diffstat (limited to 'test/test_securerandom.rb')
-rw-r--r--test/test_securerandom.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb
index 7c8640fce4..ab96952e37 100644
--- a/test/test_securerandom.rb
+++ b/test/test_securerandom.rb
@@ -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