summaryrefslogtreecommitdiff
path: root/spec/requests/user_accounts_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/user_accounts_controller
parent5faf9807968ce9f7f548474afdc31029e57103dc (diff)
Añade specs del controlador de companies
Diffstat (limited to 'spec/requests/user_accounts_controller')
-rw-r--r--spec/requests/user_accounts_controller/create_user_accounts_spec.rb (renamed from spec/requests/user_accounts_controller/post_user_accounts_spec.rb)5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/requests/user_accounts_controller/post_user_accounts_spec.rb b/spec/requests/user_accounts_controller/create_user_accounts_spec.rb
index ba77ae5..3fd5990 100644
--- a/spec/requests/user_accounts_controller/post_user_accounts_spec.rb
+++ b/spec/requests/user_accounts_controller/create_user_accounts_spec.rb
@@ -13,8 +13,9 @@ RSpec.describe 'POST /api/user_accounts', type: :request do
let(:expected_text) { %w[token refresh] }
let(:user) { create(:user_account) }
let(:params) do
- { email: user.email, password: user.password, first_name: user.first_name, last_name: user.last_name}
+ JSON.generate({ email: user.email, password: user.password,
+ first_name: user.first_name, last_name: user.last_name })
end
- let(:wrong_params) { { email: 'notanemail', password: '' } }
+ let(:wrong_params) { JSON.generate({ email: 'notanemail', password: '' }) }
end
end