Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Rumbster is a fake smtp server for email testing in Ruby.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 COPYING
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 rumbster.gemspec
README
Rumbster README
===============

  Rumbster is a fake smtp server for email testing in Ruby.
  Rumbster was developed to as a way to acceptance test email
  sending applications.

Requirements
------------

   * Ruby 1.8.2 or later (may work with earlier versions)

License
-------

  GNU LGPL, Lesser General Public License version 2.1
  For details of LGPL, see file "COPYING".

Example Usage
-------------

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

Bug Report
----------

  Any bug reports are welcome.
  If you encounter a bug, please email me.

  Adam Esterline
  adam@esterlines.com
  http://adamesterline.com
Something went wrong with that request. Please try again.