Sha256: 7194608d2ef84cd791868119713c24a06048c154a2ade0b13f4012b427a78686
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
require "#{File.dirname(__FILE__)}/test_helper" require 'pony' module Messenger class EmailTest < Test::Unit::TestCase context "Email notification" do should "send an email" do Pony.expects(:mail).with(:to => "test@example.com", :body => "Test message", :from => "test@example.com", :subject => "Test") Email.send("mailto:test@example.com", "Test message", :from => "test@example.com", :subject => "Test") end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
messenger-0.0.2 | test/test_email.rb |
messenger-0.0.1 | test/test_email.rb |