projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
4487: Omit "Remove selected" selection option when the current user cannot write...
[arvados.git]
/
apps
/
workbench
/
test
/
unit
/
user_test.rb
diff --git
a/apps/workbench/test/unit/user_test.rb
b/apps/workbench/test/unit/user_test.rb
index 20cde7e868c0459d553a81747e32b98746cd7f2e..89e95dff8c071a5e6e9373d4ac8ab5ddd43f01ef 100644
(file)
--- a/
apps/workbench/test/unit/user_test.rb
+++ b/
apps/workbench/test/unit/user_test.rb
@@
-1,4
+1,12
@@
require 'test_helper'
class UserTest < ActiveSupport::TestCase
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
end