Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / test / unit / user_test.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 require 'test_helper'
6
7 class UserTest < ActiveSupport::TestCase
8   test "can select specific user columns" do
9     use_token :admin
10     User.select(["uuid", "is_active"]).limit(5).each do |user|
11       assert_not_nil user.uuid
12       assert_not_nil user.is_active
13       assert_nil user.first_name
14     end
15   end
16 end