spec/ezmlm/list_spec.rb
changeset 16 e135ccae6783
parent 15 a38e6916504c
child 17 23c7f5c8ee39
equal deleted inserted replaced
15:a38e6916504c 16:e135ccae6783
   337 	end
   337 	end
   338 
   338 
   339 
   339 
   340 	it 'fetches author objects upon request' do
   340 	it 'fetches author objects upon request' do
   341 		expect( list.author('ojjhjlapnejjlbcplabi') ).to be_a( Ezmlm::List::Author )
   341 		expect( list.author('ojjhjlapnejjlbcplabi') ).to be_a( Ezmlm::List::Author )
       
   342 	end
       
   343 
       
   344 	it 'fetches author objects by email address' do
       
   345 		author = list.author( 'ojjhjlapnejjlbcplabi' )
       
   346 		expect( list.author('yvette@example.net').name ).to eq( author.name )
   342 	end
   347 	end
   343 
   348 
   344 
   349 
   345 	context 'fetching messages' do
   350 	context 'fetching messages' do
   346 		it 'raises an error if archiving is disabled' do
   351 		it 'raises an error if archiving is disabled' do