Sha256: 2b60a0db84d0f428a749dea6fe8d4eed4d9df66128dd095f0d1d0344337b5654
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
= FibberMailman http://farm5.static.flickr.com/4096/4855853753_840f16cb2b.jpg <b>Hey Mailmal.. lie to me!</b> Very simple library for mocking a Net::POP3.start( ... ) do |pop| <any code here> end call == Install $ [sudo] gem install fibber_mailman or $ script/plugin install git://github.com/fguillen/FibberMailman.git == Usage require 'fibber_mailman' raw_mails = [ File.read( "/fixtures/mail1.raw_mail" ) ), File.read( "/fixtures/mail2.raw_mail" ) ), ] FibberMailman.lie_to_me( raw_mails ) do <your code that uses the Net::POP3.start on any point> end Not any real POP call will be done. The mock will simulate that the mails received was the fake *raw_mails*. See the *test* folder. == TODO Only pop.each_mail do |m| <code here> end is supported. == Special Thanks * To the people on this Ruby Forum Thread: http://www.ruby-forum.com/topic/214129 == Credits Author:: Fernando Guillen: http://fernandoguillen.info Copyright:: Copyright (c) 2010 Fernando Guillen License:: Released under the MIT license.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fibber_mailman-0.0.11 | README.rdoc |
fibber_mailman-0.0.7 | README.rdoc |
fibber_mailman-0.0.5 | README.rdoc |