repost icon indicating copy to clipboard operation
repost copied to clipboard

RSpec Testing

Open caseyprovost opened this issue 1 year ago • 0 comments

Howdy! This is less of a bug and more of a question. I've been loving this gem as it solves some pains around a lot of the OAuth work I have been doing recently. Question is this: In system tests or controller RSpec tests...what is the best way to assert the behavior when the response is a redirect_post?

What I've done up until now is assert that the an instance of ApplicationController receives redirect_post with expected arguments, but it would be cool to assert that in a nicer way and even perhaps be able to stub that response so the controller still responds with a payload.

caseyprovost avatar Jun 23 '23 14:06 caseyprovost