test-unit-must - Selfish “must” assertions for Test::Unit
https://github.com/sunaku/test-unit-must
What is it?
test-unit-must is a set of assertions for Test::Unit that treat
the receiver of an assertion method call as the subject of the
assertion. In other words, these are MiniTest::Spec style
assertions, but their names only begin with must_
or must_not_
;
there is no wont_
or refute_
prefix.
What is new?
-
Support more Test::Unit 2 assertions to be 100% feature complete:
def must_be_truth message=nil
assert, self, messagedef must_yield_truth message=nil
assert_block message, &selfdef must_fail message=nil
assert_fail_assertion message, &selfdef must_exist_in_filesystem message=nil
assert_path_exist self, messagedef must_not_exist_in_filesystem message=nil
assert_path_not_exist self, messagedef must_predicate predicate, message=nil
assert_predicate self, predicate, messagedef must_not_predicate predicate, message=nil
assert_not_predicate self, predicate, message