X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/61ee61895a33008c70e5a294407cf55efc19622c..bf4193eeaa390cec08bbb8333a53fbc89edfd7f3:/services/api/test/integration/users_test.rb diff --git a/services/api/test/integration/users_test.rb b/services/api/test/integration/users_test.rb index ca14336389..f8956b21e2 100644 --- a/services/api/test/integration/users_test.rb +++ b/services/api/test/integration/users_test.rb @@ -303,15 +303,15 @@ class UsersTest < ActionDispatch::IntegrationTest assert_response :success rp = json_response assert_not_nil rp["uuid"] - assert_not_nil rp["is_active"] - assert_nil rp["is_admin"] + assert_equal true, rp["is_active"] + assert_equal false, rp["is_admin"] get "/arvados/v1/users/#{rp['uuid']}", params: {format: 'json'}, headers: auth(:admin) assert_response :success assert_equal rp["uuid"], json_response['uuid'] - assert_nil json_response['is_admin'] + assert_equal false, json_response['is_admin'] assert_equal true, json_response['is_active'] assert_equal 'foo@example.com', json_response['email'] assert_equal 'barney', json_response['username']