spec/ezmlm/list/message_spec.rb
changeset 17 23c7f5c8ee39
parent 15 a38e6916504c
--- a/spec/ezmlm/list/message_spec.rb	Fri May 12 16:17:41 2017 -0700
+++ b/spec/ezmlm/list/message_spec.rb	Tue May 16 13:58:34 2017 -0700
@@ -44,6 +44,7 @@
 		it 'raises error when unable to read message' do
 			allow( list ).to receive( :listdir ).and_return( Pathname('/nope') )
 			expect( list ).to receive( :message_count ).and_return( 1 )
+			expect( list ).to receive( :archived? ).and_return( true )
 			expect {
 				described_class.new( list, 1 )
 			}.to raise_error( RuntimeError, /unable to determine message path/i )