[ANN] test-unit-must 0.1.0

S

Suraj Kurapati

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, message

def must_yield_truth message=nil
assert_block message, &self

def must_fail message=nil
assert_fail_assertion message, &self

def must_exist_in_filesystem message=nil
assert_path_exist self, message

def must_not_exist_in_filesystem message=nil
assert_path_not_exist self, message

def must_predicate predicate, message=nil
assert_predicate self, predicate, message

def must_not_predicate predicate, message=nil
assert_not_predicate self, predicate, message
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,150
Members
46,697
Latest member
AugustNabo

Latest Threads

Top