Closed gamalielhere closed 7 years ago
@gamalielhere please try this:
allow(response).to receive(:response_code).and_return(401)
instead of
response.stub(:response_code).and_return(401)
@hiendinhngoc I fixed it by changing the whole thing with a snippet I found from a russian site. I'll source it later if I find it.
@gamalielhere Can you post your answer? it would be interesting
@hiendinhngoc Thanks for the response, the rspec version on that time allowed me to do that, but you are right!
Hello,
Not sure what's happening but I'm getting these errors on rspec:
authenticable_spec.rb: