summaryrefslogtreecommitdiff
path: root/spec/requests/user_accounts_controller
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-04 17:55:20 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-04 17:55:20 -0600
commitdb9b4b712271a67e60e6c0bf58c9ce510f177682 (patch)
tree791da60f29a1ac3b73efff46493d96c0116318e0 /spec/requests/user_accounts_controller
parent3afd35371caa0677fd2f66491bd337d1673013dc (diff)
Mejora presentaciĆ³n de mensajes de error
Diffstat (limited to 'spec/requests/user_accounts_controller')
-rw-r--r--spec/requests/user_accounts_controller/create_spec.rb2
-rw-r--r--spec/requests/user_accounts_controller/update_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/requests/user_accounts_controller/create_spec.rb b/spec/requests/user_accounts_controller/create_spec.rb
index a45e02b..7b70268 100644
--- a/spec/requests/user_accounts_controller/create_spec.rb
+++ b/spec/requests/user_accounts_controller/create_spec.rb
@@ -7,7 +7,7 @@ RSpec.describe 'POST /api/user_accounts', type: :request do
let(:headers) { {} }
let(:route) { '/api/user_accounts' }
let(:expected_error_messages) do
- ["Password can't be blank", 'Email is invalid', "First name can't be blank", "Last name can't be blank"]
+ ["can't be blank", 'is invalid', "can't be blank", "can't be blank"]
end
let(:desired_error_status) { 422 }
let(:expected_text) { %w[token refresh] }
diff --git a/spec/requests/user_accounts_controller/update_spec.rb b/spec/requests/user_accounts_controller/update_spec.rb
index fcfb28e..e26f819 100644
--- a/spec/requests/user_accounts_controller/update_spec.rb
+++ b/spec/requests/user_accounts_controller/update_spec.rb
@@ -17,7 +17,7 @@ RSpec.describe 'PUT /api/account', type: :request do
let(:desired_error_status) { 422 }
let(:wrong_params) { { email: 'notanemail', password: '', first_name: '', last_name: '' } }
let(:expected_error_messages) do
- ['Email is invalid', "First name can't be blank", "Last name can't be blank"]
+ ['is invalid', "can't be blank", "can't be blank"]
end
end
end