lundi 24 avril 2017

rails assert_difference without specific difference value

I'm new to rails tests and I'm trying to understand the call to assert_difference. From the documentation, I deduce that the method requires a numerical value for the difference between the previous and the final value of the expression. What if I just want to assert that there is a difference, no matter how big it is? Maybe something like assert_not (assert_no_difference ... )?

Aucun commentaire:

Enregistrer un commentaire