]> gitweb.michael.orlitzky.com - mailshears.git/blobdiff - test/test_mv.rb
Change the description at the top of the executable.
[mailshears.git] / test / test_mv.rb
index f91c4bf79c8583e36ed570fcebad6005f45971cf..7ded82016072a526874f0c68bc172738c69d3b71 100644 (file)
@@ -66,14 +66,17 @@ class TestMv < MailshearsTest
     assert_equal(expected.sort(), actual.sort())
 
     actual = pfamv.list_aliases()
-    expected = [{'address' => 'alice@example.net',
-                 'goto' => 'alice@example.net'},
-                {'address' => 'bob@example.com',
-                 'goto' => 'bob@example.com'},
-                {'address' => 'adam@example.net',
+    expected = [{'address' => 'adam@example.net',
                  'goto' => 'adam@example.net'},
+                {'address' => 'alice@example.net',
+                 'goto' => 'alice@example.net,' +
+                           'adam@example.net,' +
+                           'bob@example.com,' +
+                           'carol@example.net'},
                 {'address' => 'beth@example.net',
-                    'goto' => 'beth@example.net'},
+                 'goto' => 'beth@example.net'},
+                {'address' => 'bob@example.com',
+                 'goto' => 'bob@example.com'},
                 {'address' => 'carol@example.net',
                  'goto' => 'carol@example.net'}]
     expected.each { |e| assert(actual.include?(e)) } # can't sort dicts
@@ -138,14 +141,17 @@ class TestMv < MailshearsTest
     assert_equal(expected.sort(), actual.sort())
 
     actual = pfamv.list_aliases()
-    expected = [{'address' => 'alice@example.com',
-                 'goto' => 'alice@example.com'},
-                {'address' => 'bob@example.com',
-                 'goto' => 'bob@example.com'},
-                {'address' => 'adam@example.net',
+    expected = [{'address' => 'adam@example.net',
                  'goto' => 'adam@example.net'},
+                {'address' => 'alice@example.com',
+                 'goto' => 'alice@example.com,' +
+                           'adam@example.net,' +
+                           'bob@example.com,' +
+                           'carol@example.net'},
                 {'address' => 'beth@example.net',
-                    'goto' => 'beth@example.net'},
+                 'goto' => 'beth@example.net'},
+                {'address' => 'bob@example.com',
+                 'goto' => 'bob@example.com'},
                 {'address' => 'carol@example.net',
                  'goto' => 'carol@example.net'}]
     expected.each { |e| assert(actual.include?(e)) } # can't sort dicts