Added cleanup.
This commit is contained in:
parent
330a38925c
commit
b2d2b047d9
1 changed files with 2 additions and 0 deletions
|
@ -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.permission2'))
|
||||||
assert_equal(true, user_with_permission1.permissions?('admin'))
|
assert_equal(true, user_with_permission1.permissions?('admin'))
|
||||||
|
|
||||||
|
role_permission1.permission_revoke('admin')
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test 'user permission with invalid role' do
|
test 'user permission with invalid role' do
|
||||||
|
|
Loading…
Reference in a new issue