Another newbie question: .check(, 422)) How do I do this?

Basically I want to check if the status is either 200 (OK) or 422(Not found), both of which are expected.

But I don’t quite understand how to do a ‘or’ between statuses.

I though that .check(, 422)) might do it, but this is incorrect syntax.

I assume that .check(, is basically 200 and 422?

So how do you get 200 or 422 ?


That will do it:, 422))


Thanks! Much appreciated.


kl. 11:43:23 UTC+2 torsdag 24. april 2014 skrev Nicolas Rémond følgende: