You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/08/01 16:03:41 UTC
[whimsy] 01/02: Track changes to live mailing lists
This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
commit 8a8147c528e5fe33fa1bf168673506aef64e0fde
Author: Sebb <se...@apache.org>
AuthorDate: Mon Aug 1 15:45:24 2022 +0100
Track changes to live mailing lists
---
lib/spec/lib/mail/mlist_spec.rb | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/lib/spec/lib/mail/mlist_spec.rb b/lib/spec/lib/mail/mlist_spec.rb
index cc777237..5edfc21b 100644
--- a/lib/spec/lib/mail/mlist_spec.rb
+++ b/lib/spec/lib/mail/mlist_spec.rb
@@ -68,7 +68,7 @@ describe ASF::MLIST do
res = ASF::MLIST.moderates(user_emails)
expect(res.length).to eq(2)
mods = res[:moderates]
- expect(mods.length).to be_between(8, 20)
+ expect(mods.length).to be_between(7, 20)
end
end
@@ -126,9 +126,10 @@ describe ASF::MLIST do
expect(list.size).to eq(1) # members
expect(list.keys.first).to eq('members@apache.org')
else
- expect(list.size).to eq(2) # members and members-notify
+ expect(list.size).to eq(3) # members, members-announce and members-notify
expect(list.keys[0]).to eq('members@apache.org')
- expect(list.keys[1]).to eq('members-notify@apache.org')
+ expect(list.keys[1]).to eq('members-announce@apache.org')
+ expect(list.keys[2]).to eq('members-notify@apache.org')
end
end
end
@@ -153,9 +154,10 @@ describe ASF::MLIST do
expect(entry.size).to eq(2)
expect(entry[1].size).to eq(1) # number of moderators
else
- expect(list.size).to eq(2) # members and members-notify
+ expect(list.size).to eq(3) # members, members-announce and members-notify
expect(list.keys[0]).to eq('members@apache.org')
- expect(list.keys[1]).to eq('members-notify@apache.org')
+ expect(list.keys[1]).to eq('members-announce@apache.org')
+ expect(list.keys[2]).to eq('members-notify@apache.org')
entry = list.first
expect(entry.class).to eq(Array)
expect(entry.size).to eq(2)