diff --git a/test/unit/permission_test.rb b/test/unit/permission_test.rb index 1dc2a59e1..90c47eca6 100644 --- a/test/unit/permission_test.rb +++ b/test/unit/permission_test.rb @@ -71,6 +71,8 @@ class PermissionTest < ActiveSupport::TestCase assert_equal(true, user_with_permission1.permissions?('admin.permission2')) assert_equal(true, user_with_permission1.permissions?('admin')) + role_permission1.permission_revoke('admin') + end test 'user permission with invalid role' do