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

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionmailer/test/abstract_unit.rb
actionmailer-1.3.6 test/abstract_unit.rb
actionmailer-1.3.4 test/abstract_unit.rb
actionmailer-1.3.0 test/abstract_unit.rb
actionmailer-1.3.2 test/abstract_unit.rb
actionmailer-1.3.5 test/abstract_unit.rb
actionmailer-1.3.1 test/abstract_unit.rb
actionmailer-1.3.3 test/abstract_unit.rb
radiant-0.6.0 vendor/rails/actionmailer/test/abstract_unit.rb
radiant-0.6.1 vendor/rails/actionmailer/test/abstract_unit.rb
radiant-0.6.3 vendor/rails/actionmailer/test/abstract_unit.rb
radiant-0.6.2 vendor/rails/actionmailer/test/abstract_unit.rb
radiant-0.6.4 vendor/rails/actionmailer/test/abstract_unit.rb