From: Ryan Davis Date: 2010-09-01T18:12:49+09:00 Subject: Re: why no assert_not? On Sep 1, 2010, at 01:19 , Martin DeMello wrote: > Test::Unit could use a built-in antonym of assert, that succeeds if > its argument is either false or nil. this is why minitest has refute, which means it is available in ruby 1.9: > ./ruby19 -Ilib -rtest/unit -e 'class X < Test::Unit::TestCase; def test_x; refute true; end;end' > Test run options: --seed 53548 > > Loaded suite -e > Started > F > Finished in 0.000635 seconds. > > 1) Failure: > test_x(X) [-e:1]: > Failed refutation, no message given > > 1 tests, 1 assertions, 1 failures, 0 errors, 0 skips > > Test run options: --seed 53548