summaryrefslogtreecommitdiff
path: root/spec/requests/sessions_controller
diff options
context:
space:
mode:
Diffstat (limited to 'spec/requests/sessions_controller')
-rw-r--r--spec/requests/sessions_controller/create_sessions_controller_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/sessions_controller/create_sessions_controller_spec.rb b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
index 69b7b42..cca04b1 100644
--- a/spec/requests/sessions_controller/create_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
@@ -4,13 +4,13 @@ require 'rails_helper'
RSpec.describe 'POST /api/login', type: :request do
it_behaves_like 'a POST request' do
- let(:headers) { { 'CONTENT_TYPE' => 'application/json' } }
+ let(:headers) { {} }
let(:route) { '/api/login' }
let(:expected_error_messages) { ['Credenciales incorrectas'] }
let(:desired_error_status) { 401 }
let(:expected_text) { %w[token refresh] }
let(:user) { create(:user_account) }
- let(:params) { JSON.generate({ email: user.email, password: user.password }) }
- let(:wrong_params) { JSON.generate({ email: user.email, password: 'wrong_password' }) }
+ let(:params) { { email: user.email, password: user.password } }
+ let(:wrong_params) { { email: user.email, password: 'wrong_password' } }
end
end