How should I test a ajax response when using Clearance for authentication? I started with a request spec that I have passing as long as my controller doesn’t have
before_filter :authorize. However, if I want to add that I can’t find a way to sign in to clearance in a request spec.
Do I have the wrong test? Should this be a controller spec?
How do you guys at thoughtbot test ajax responses?