diff options
Diffstat (limited to 'lib/test/unit/assertions.rb')
-rw-r--r-- | lib/test/unit/assertions.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index f810d5a714..7cfa243204 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -322,7 +322,9 @@ EOT def message(msg = nil, *args, &default) if Proc === msg - super(nil, *args) {"#{msg.call}#{default.call if default}"} + super(nil, *args) do + [msg.call, (default.call if default)].compact.reject(&:empty?).join(".\n") + end else super end |