I'm doing:
@request.env["HTTP_AUTHORIZATION"] = 'Bearer abc'
post(:create)
as one user in a test, then:
@request.env["HTTP_AUTHORIZATION"] = 'Bearer xyz'
post(:create)
but the 2nd request still comes in as abc. Can I clear the cached value somehow?
Source: http://ift.tt/1TA5PN3
Aucun commentaire:
Enregistrer un commentaire