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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -