X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da1614ac6d9b1b2aeba6267b304ce70c1726b608..dc068f04e966c35eee87af8da280bbbeb9ba3595:/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