I'm using session and I call it like this:
test_helper
get_session()
open_session
end
propertyController class
current_session = get_session
current_session.get "/properties/"
I now need to figure out how to include an access token in the request header like request["header-name"] = token. I need this to be included in the open_session before it's returns. Is there a way to call request in an integration test without it being nul?
Aucun commentaire:
Enregistrer un commentaire