X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7f7cd27d5fc31dc5bbec7f95905fd394a5b317c7..7871e324112f24527031f4100e4131ff2c6ab245:/services/api/test/unit/user_test.rb diff --git a/services/api/test/unit/user_test.rb b/services/api/test/unit/user_test.rb index fd56a745a8..2d2db160cd 100644 --- a/services/api/test/unit/user_test.rb +++ b/services/api/test/unit/user_test.rb @@ -88,6 +88,8 @@ class UserTest < ActiveSupport::TestCase end test "full name should not contain spurious whitespace" do + Thread.current[:user] = @admin_user # set admin user as the current user + user = User.create ({uuid: 'zzzzz-tpzed-abcdefghijklmno', email: 'foo@example.com' }) assert_equal '', user.full_name