From: Daniel Berger Date: 2010-09-02T04:47:26+09:00 Subject: Re: why no assert_not? On Sep 1, 2:19 am, Martin DeMello wrote: > Test::Unit could use a built-in antonym of assert, that succeeds if > its argument is either false or nil. test-unit 2.x has assert_false and assert_nil if that's any help. Actually, test-unit 1.x has assert_nil, too, I believe. You can always add your own. class Test::Unit::TestCase def assert_nil_or_false(condition) assert_nil(condition) && assert_false(condition) end end Regards, Dan