]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - test/test_rm.rb
Add a test to ensure that "nonexistent" AgenDAV users' shares are removed.
[mailshears.git] / test / test_rm.rb
index 24dacc3391f309ebdce6dfa63b710d109702dd5e..02de53d08f5a3b95f18875196f05ef73d7049d10 100644 (file)
@@ -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')]