diff options
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 |