Another newbie question: .check(status.in(200, 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(status.in(200, 422)) might do it, but this is incorrect syntax.

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

So how do you get 200 or 422 ?

Thanks

That will do it: status.in(Seq(200, 422))

Cheers
Nicolas

Thanks! Much appreciated.

Håkon

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