expect(json_response['message']).toeq("403 Forbidden - The user you are trying to deactivate has been active in the past #{::User::MINIMUM_INACTIVE_DAYS} days and cannot be deactivated")
expect(json_response['message']).toeq("403 Forbidden - The user you are trying to deactivate has been active in the past #{::User::MINIMUM_INACTIVE_DAYS} days and cannot be deactivated")
expect(user.reload.state).toeq('active')
end
end
...
...
@@ -2467,7 +2467,7 @@ RSpec.describe API::Users do