summaryrefslogtreecommitdiff
path: root/lib/test/unit
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-22 05:10:40 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-22 05:10:40 +0000
commite1d15712565ef38f7acd605dc1aafb3884b6a008 (patch)
treee4fb4945d58e5dc8bc079865a39b93c8a5e119ff /lib/test/unit
parentb3ee43bb6ea50fd45e7e84c5d8e84452b9fc93c8 (diff)
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
treat nil case. Please run test-all before commit such change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/test/unit')
-rw-r--r--lib/test/unit/assertions.rb2
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