From f39235d865412d75625779a557a6c51736798dfa Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 10 Mar 2023 19:16:12 -0600 Subject: Cambiar peticiones post para que usen formularios --- spec/requests/sessions_controller/post_sessions_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/requests/sessions_controller') 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 -- cgit v1.2.3