Sha256: b1a0062631e7d34ece42b18ea0f91eb1cca1d36f523ac9a29564c46d75c3cadf
Contents?: true
Size: 592 Bytes
Versions: 6
Compression:
Stored size: 592 Bytes
Contents
require File.join(File.dirname(__FILE__), "../spec_helper") module Emailer describe MockSmtpFacade do describe :initialize do it "Should be able to send without actulay sending anything" do message = {:to => "test@bits2life.com", :from => "test@bits2life.com", :subject => "A test", :body => "A test body"} smtp = MockSmtpFacade.new smtp.open do smtp.send_mail( message ) end smtp.sent.first.should == message end end end end
Version data entries
6 entries across 6 versions & 2 rubygems