Sha256: 906b4a01f82145122696a7cbcc97565f39aeafa3d6a4b80c25b1c190d478f960
Contents?: true
Size: 584 Bytes
Versions: 22
Compression:
Stored size: 584 Bytes
Contents
require 'test/unit' $:.unshift "#{File.dirname(__FILE__)}/../lib" require 'action_mailer' # Show backtraces for deprecated behavior for quicker cleanup. ActiveSupport::Deprecation.debug = true $:.unshift "#{File.dirname(__FILE__)}/fixtures/helpers" ActionMailer::Base.template_root = "#{File.dirname(__FILE__)}/fixtures" class MockSMTP def self.deliveries @@deliveries end def initialize @@deliveries = [] end def sendmail(mail, from, to) @@deliveries << [mail, from, to] end end class Net::SMTP def self.start(*args) yield MockSMTP.new end end
Version data entries
22 entries across 22 versions & 4 rubygems