mercredi 19 avril 2017

Rails Minitest assert_equal 200 || 304

I use Minitest and I am wondering if it's possible to success my tests either with 200 or 304 page.status_code.

Not sure to be clear, but I tried this:

assert_equal 200 || 304 ,  page.status_code

sounds does not work.

So there is a way to achieve this.

Thx

Aucun commentaire:

Enregistrer un commentaire