summaryrefslogtreecommitdiff
path: root/spec/requests/sessions_controller
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 21:40:37 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 21:40:37 -0600
commitb174a733a5ba58f1d9802feaa4793b4a6c2df523 (patch)
tree71e1022301b0e860b1d65a85f493ea7fd2711200 /spec/requests/sessions_controller
parent5faf9807968ce9f7f548474afdc31029e57103dc (diff)
Añade specs del controlador de companies
Diffstat (limited to 'spec/requests/sessions_controller')
-rw-r--r--spec/requests/sessions_controller/create_sessions_controller_spec.rb (renamed from spec/requests/sessions_controller/post_sessions_controller_spec.rb)4
-rw-r--r--spec/requests/sessions_controller/destroy_sessions_controller_spec.rb (renamed from spec/requests/sessions_controller/delete_sessions_controller_spec.rb)0
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/sessions_controller/post_sessions_controller_spec.rb b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
index c67b14d..69b7b42 100644
--- a/spec/requests/sessions_controller/post_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/create_sessions_controller_spec.rb
@@ -10,7 +10,7 @@ RSpec.describe 'POST /api/login', type: :request do
let(:desired_error_status) { 401 }
let(:expected_text) { %w[token refresh] }
let(:user) { create(:user_account) }
- let(:params) { { email: user.email, password: user.password } }
- let(:wrong_params) { { email: user.email, password: 'wrong_password' } }
+ let(:params) { JSON.generate({ email: user.email, password: user.password }) }
+ let(:wrong_params) { JSON.generate({ email: user.email, password: 'wrong_password' }) }
end
end
diff --git a/spec/requests/sessions_controller/delete_sessions_controller_spec.rb b/spec/requests/sessions_controller/destroy_sessions_controller_spec.rb
index bc669fc..bc669fc 100644
--- a/spec/requests/sessions_controller/delete_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/destroy_sessions_controller_spec.rb