diff options
Diffstat (limited to 'lib/minitest/unit.rb')
-rw-r--r-- | lib/minitest/unit.rb | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index 100d77f61a..e3a069a3e9 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -1,8 +1,8 @@ -############################################################ -# This file is imported from a different project. -# DO NOT make modifications in this repo. -# File a patch instead and assign it to Ryan Davis -############################################################ +###################################################################### +# This file is imported from the minitest project. +# DO NOT make modifications in this repo. They _will_ be reverted! +# File a patch instead and assign it to Ryan Davis. +###################################################################### require 'optparse' @@ -100,7 +100,8 @@ module MiniTest # Fails unless the block returns a true value. def assert_block msg = nil - assert yield, "Expected block to return true value." + msg = message(msg) { "Expected block to return true value" } + assert yield, msg end ## |