summaryrefslogtreecommitdiff
path: root/spec/requests/sessions_controller
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-10 19:16:12 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-10 19:16:12 -0600
commitf39235d865412d75625779a557a6c51736798dfa (patch)
treeeac8c00aba703fdf5c7683b448afbd0f15fa5b78 /spec/requests/sessions_controller
parent6a9c7e493a309670e2dba433331ed75a374aaf39 (diff)
Cambiar peticiones post para que usen formularios
Diffstat (limited to 'spec/requests/sessions_controller')
-rw-r--r--spec/requests/sessions_controller/post_sessions_controller_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/sessions_controller/post_sessions_controller_spec.rb b/spec/requests/sessions_controller/post_sessions_controller_spec.rb
index 31cef31..c67b14d 100644
--- a/spec/requests/sessions_controller/post_sessions_controller_spec.rb
+++ b/spec/requests/sessions_controller/post_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) { { credentials: { email: user.email, password: user.password } } }
- let(:wrong_params) { { credentials: { 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