16007: Enable permission correctness checking (only for tests)
[arvados.git] / services / api / test / unit / user_test.rb
index 5d25361eda4aafac1ed926fb7c72c3de9f5b835c..596cd415fb27f12ffc2c635d6642547dcda3df3c 100644 (file)
@@ -168,9 +168,6 @@ class UserTest < ActiveSupport::TestCase
         act_as_system_user do
           users(:admin).update_attributes!(is_admin: false)
         end
-        # need to manually call clear_permissions because we used 'delete' instead of 'destory'
-        # we use delete here because 'destroy' will throw an error
-        #users(:admin).clear_permissions
         @all_users = User.where("uuid not like '%-000000000000000'").where(:is_admin => true)
         assert_equal 0, @all_users.count, "No admin users should exist (except for the system user)"
       end