diff options
Diffstat (limited to 'lib/test/unit')
-rw-r--r-- | lib/test/unit/assertions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb index ab3dd83aaa..b9fc2bcf12 100644 --- a/lib/test/unit/assertions.rb +++ b/lib/test/unit/assertions.rb @@ -14,7 +14,7 @@ module Test def assert(test, msg = UNASSIGNED) msg = nil if msg == UNASSIGNED - unless String === msg or Proc === msg then + unless String === msg or Proc === msg or msg.nil? then bt = caller.reject { |s| s.rindex(MiniTest::MINI_DIR, 0) } raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt end |