Extract updating the user role from params

This commit is contained in:
Sebastian Serth
2022-08-18 21:26:48 +02:00
parent ba39ca395e
commit a9aab612b6
2 changed files with 9 additions and 2 deletions

View File

@ -135,7 +135,7 @@ describe InternalUsersController do
end
context 'with an invalid internal user' do
before { post :create, params: {internal_user: {}} }
before { post :create, params: {internal_user: {invalid_attribute: 'a string'}} }
expect_assigns(user: InternalUser)
expect_http_status(:ok)