lundi 14 août 2017

Test/Unit how check RuntimeError (raise)

In my program i use raise "text" to prewent creating object when parameters are wrong.

How check this in Test/Unit ?

assert_ ? (MyObject.new(wrong,parameter))

how check my object was NOT created?

Aucun commentaire:

Enregistrer un commentaire