Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / test / unit / user_test.rb
index 20cde7e868c0459d553a81747e32b98746cd7f2e..1b887151c4e81f811af141b2908aca2871239f30 100644 (file)
@@ -1,4 +1,16 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class UserTest < ActiveSupport::TestCase
+  test "can select specific user columns" do
+    use_token :admin
+    User.select(["uuid", "is_active"]).limit(5).each do |user|
+      assert_not_nil user.uuid
+      assert_not_nil user.is_active
+      assert_nil user.first_name
+    end
+  end
 end