X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mailshears.git;a=blobdiff_plain;f=test%2Ftest_rm.rb;h=02de53d08f5a3b95f18875196f05ef73d7049d10;hp=24dacc3391f309ebdce6dfa63b710d109702dd5e;hb=93f4125437702363b25b6825d6f20e98b1e319a9;hpb=d0f4b13d82c158238329dbdfc5b26be410e2e727 diff --git a/test/test_rm.rb b/test/test_rm.rb index 24dacc3..02de53d 100644 --- a/test/test_rm.rb +++ b/test/test_rm.rb @@ -42,6 +42,13 @@ class TestRm < MailshearsTest expected = [User.new('booger@example.com')] assert_equal(expected, actual) + # Only try to remove this guy from the agendav database, to ensure + # that "nonexistent" users have their shares removed. + arm.remove_user('stinky@example.com') + expected = 2 + actual = arm.count_shares() + assert_equal(expected, actual) + drm = DavicalRm.new(cfg) actual = drm.list_users() expected = [User.new('alice@example.com'), User.new('booger@example.com')]