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 <[email protected]> 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('[email protected]') 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('[email protected]') - expect(list.keys[1]).to eq('[email protected]') + expect(list.keys[1]).to eq('[email protected]') + expect(list.keys[2]).to eq('[email protected]') 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('[email protected]') - expect(list.keys[1]).to eq('[email protected]') + expect(list.keys[1]).to eq('[email protected]') + expect(list.keys[2]).to eq('[email protected]') entry = list.first expect(entry.class).to eq(Array) expect(entry.size).to eq(2)
