[ANN] test-unit-must 0.1.0

Discussion in 'Ruby' started by Suraj Kurapati, May 1, 2011.

  1. 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

    --
    Posted via http://www.ruby-forum.com/.
     
    Suraj Kurapati, May 1, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VvanN
    Replies:
    5
    Views:
    518
    Phlip
    Apr 28, 2006
  2. Bill David
    Replies:
    2
    Views:
    284
    Arne Vajhøj
    Jun 18, 2008
  3. timr
    Replies:
    2
    Views:
    182
  4. Vahagn Hayrapetyan
    Replies:
    3
    Views:
    177
    Vahagn Hayrapetyan
    May 2, 2011
  5. Suraj Kurapati

    [ANN] test-unit-must 1.0.0

    Suraj Kurapati, May 1, 2011, in forum: Ruby
    Replies:
    0
    Views:
    96
    Suraj Kurapati
    May 1, 2011
Loading...

Share This Page