Prevent api auth token to expire #78

Closed
bilal.catic wants to merge 3 commits from prevent-API-auth-token-to-expire into master
Showing only changes of commit 01da597f3e - Show all commits

View File

@@ -13,6 +13,7 @@ RSpec.describe Api::UserTokenController, type: :request do
expect(response).to be_successful
expect(response.body).to match record_not_found
expect(cookie_data).to eq nil
expect(rtfuser_cookie).to eq nil
end
it 'sends token and cookie if credentials are correct' do
@@ -22,6 +23,7 @@ RSpec.describe Api::UserTokenController, type: :request do
expect(response.body).not_to match record_not_found
expect(response.body).to match token_response
expect(cookie_data).not_to eq nil
expect(rtfuser_cookie).not_to eq nil
end
end
@@ -60,4 +62,8 @@ RSpec.describe Api::UserTokenController, type: :request do
def cookie_data
cookies[:_easy_release_session]
end
def rtfuser_cookie
cookies[:_rtfuser]
end
end