ruby - Equivalent of should be_true in minitest -
i know equivalent of:
event.should be_live
in minitest? method testing is:
event.live?
at moment using:
conf.live?.must_equal true
but looks me quite contrived.
newer versions of minitest allow testing predicates in assert_operator
. expectation in spec dsl must_be
. code can like:
event.must_be :live?
Comments
Post a Comment