I’m a novice at Rspec.
Let’s say I have
But what I want is to say that either 200 or 302 is valid.
How would I do that?
expect(response).to (have_http_status(200) || have_http_status(302))
While syntactically valid, this doesn’t work because
have_http_status(200)will throw an exception before it gets to the ``have_http_status(302) .
Is this the right forum to ask this question?