From 9e3c8678d895466939d7c4feb8d0a27fe030e01f Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 16 May 2011 11:36:26 +0200 Subject: fix in user groups test, test deleted policy --- authorization.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'authorization.rb') diff --git a/authorization.rb b/authorization.rb index cbe8b5a..1d9b676 100644 --- a/authorization.rb +++ b/authorization.rb @@ -44,7 +44,7 @@ class TestOpenToxAuthorizationLDAP < Test::Unit::TestCase end def test_02_list_user_groups - assert_kind_of Array, OpenTox::Authorization.list_groups(@@subjectid) + assert_kind_of Array, OpenTox::Authorization.list_user_groups(TEST_USER, @@subjectid) end def test_03_get_user @@ -64,6 +64,7 @@ class TestOpenToxAuthorizationLDAP < Test::Unit::TestCase policies.each do |policy| assert OpenTox::Authorization.delete_policy(policy, @@subjectid) end + assert_equal false, OpenTox::Authorization.uri_has_policy(TEST_URI, @@subjectid) end def test_02_check_policy_rules -- cgit v1.2.3