ruby-changes:62976
From: Hiroshi <ko1@a...>
Date: Wed, 16 Sep 2020 07:45:22 +0900 (JST)
Subject: [ruby-changes:62976] 344304c89f (master): Use build_message on test_securerandom.rb (#3543)
https://git.ruby-lang.org/ruby.git/commit/?id=344304c89f From 344304c89f956bdf269b5424ae091f6928b678bb Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Wed, 16 Sep 2020 07:45:01 +0900 Subject: 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 diff --git a/test/test_securerandom.rb b/test/test_securerandom.rb index 7c8640f..ab96952 100644 --- a/test/test_securerandom.rb +++ b/test/test_securerandom.rb @@ -175,7 +175,7 @@ end https://github.com/ruby/ruby/blob/trunk/test/test_securerandom.rb#L175 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/