summaryrefslogtreecommitdiff
path: root/spec/requests
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-01 12:00:33 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-01 12:00:33 -0600
commit753bf8499ba5d8815db8d08a1dcf69caa20660cf (patch)
treec758e18e3009f9c6da002164686e88956430847b /spec/requests
parent64214e370778dc3efdaca85acd0cd7a569a79b81 (diff)
Mejora estructura del proyecto
Diffstat (limited to 'spec/requests')
-rw-r--r--spec/requests/refresh_tokens_controller/post_spec.rb2
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)