diff options
Diffstat (limited to 'spec/requests/refresh_tokens_controller')
-rw-r--r-- | spec/requests/refresh_tokens_controller/post_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/requests/refresh_tokens_controller/post_spec.rb b/spec/requests/refresh_tokens_controller/post_spec.rb index 5d8f8f0..c28301a 100644 --- a/spec/requests/refresh_tokens_controller/post_spec.rb +++ b/spec/requests/refresh_tokens_controller/post_spec.rb @@ -16,7 +16,7 @@ RSpec.describe 'POST /api/refresh_tokens', type: :request do context 'with an expired token' do it 'returns an error message' do service_params = { email: user.email, role: user.role } - jwt = Services::TokenGenerationService.new(service_params).call(DateTime.current - 5.days) + jwt = TokenGenerationService.new(service_params).call(DateTime.current - 5.days) headers = { 'CONTENT_TYPE' => 'application/json', 'Authorization' => "Bearer #{jwt[:refresh]}" } post('/api/refresh_tokens', headers:) expect(response).to have_http_status(401) |