When i try in postman
for the user authentication
, it works perfectly.
Request:
{"email" : "shane@shane.com", "password": "123"}
Response:
{
"token": "some-token"
}
But when i try to create a test login. I get ActiveRestClient::HTTPServerException: ActiveRestClient::HTTPServerException
@login = User.login(FactoryGirl.create(:user,
email: "shane@shane.com", password: "123"));
Why am i getting ActiveRestClient::HTTPServerException?.