.. |
lib |
test |
.autotest |
.travis.yml |
Gemfile |
Gemfile.lock |
LICENSE.txt |
README.md |
Rakefile |
VERSION |
rumbster.gemspec |
Rumbster is a fake smtp server for email testing in Ruby. Rumbster was developed to as a way to acceptance test email sending applications.
A good source for usage information is the unit tests in the test directory. Below is an example of the usage.
class TestEmails < Test::Unit::TestCase def setup @rumbster = Rumbster.new(port) @message_observer = MailMessageObserver.new @rumbster.add_observer @message_observer @rumbster.add_observer FileMessageObserver.new('some/directory') @rumbster.start end def teardown @rumbster.stop end def test_email_is_sent send_email assert_equal 1, @message_observer.messages.size assert_equal 'junk@junk.com', @message_observer.messages.first.to end end
Copyright (c) 2011 Adam Esterline. See LICENSE.txt for further details.