How to add headers
to my get request
.
it "can find an account" do
get "/accounts/#{@acc.id}/", headers # like the token or whatever your api needs
end
Below is my controller
method where i am passing the token, now how would i append
this to my get request
.
Account.find(id: @acc.id, authorization: @auth_token);