0.0
No commit activity in last 3 years
No release in over 3 years
FibberMailman lie to you when you ask for a Net::POP3.start call.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

>= 0
 Project Readme

FibberMailman¶ ↑

Hey Mailmal.. lie to me!

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¶ ↑

Credits¶ ↑

Author

Fernando Guillen: fernandoguillen.info

Copyright

Copyright © 2010 Fernando Guillen

License

Released under the MIT license.