Sha256: 00f7cb2568512c033d8ba218a5d452f64d6aa6843a292114aebcb98905959b58

Contents?: true

Size: 1.04 KB

Versions: 85

Compression:

Stored size: 1.04 KB

Contents

require 'abstract_unit'

class DefaultDeliveryMethodMailer < ActionMailer::Base
end

class NonDefaultDeliveryMethodMailer < ActionMailer::Base
  self.delivery_method = :sendmail
end

class ActionMailerBase_delivery_method_Test < Test::Unit::TestCase
  def setup
    set_delivery_method :smtp
  end
  
  def teardown
    restore_delivery_method
  end

  def test_should_be_the_default_smtp
    assert_equal :smtp, ActionMailer::Base.delivery_method
  end
end

class DefaultDeliveryMethodMailer_delivery_method_Test < Test::Unit::TestCase
  def setup
    set_delivery_method :smtp
  end
  
  def teardown
    restore_delivery_method
  end
  
  def test_should_be_the_default_smtp
    assert_equal :smtp, DefaultDeliveryMethodMailer.delivery_method
  end
end

class NonDefaultDeliveryMethodMailer_delivery_method_Test < Test::Unit::TestCase
  def setup
    set_delivery_method :smtp
  end
  
  def teardown
    restore_delivery_method
  end

  def test_should_be_the_set_delivery_method
    assert_equal :sendmail, NonDefaultDeliveryMethodMailer.delivery_method
  end
end

Version data entries

85 entries across 82 versions & 16 rubygems

Version Path
actionmailer-2.3.18 test/delivery_method_test.rb
actionmailer_csi-2.3.5.p8 test/delivery_method_test.rb
actionmailer-2.3.17-rack-upgrade-2.3.17 test/delivery_method_test.rb
actionmailer-2.3.17 test/delivery_method_test.rb
actionmailer_csi-2.3.5.p7 test/delivery_method_test.rb
actionmailer_csi-2.3.5.20130130071128 test/delivery_method_test.rb
actionmailer_csi-2.3.5.p6 test/delivery_method_test.rb
actionmailer-2.3.16 test/delivery_method_test.rb
actionmailer-rack-upgrade-2-2.3.16 test/delivery_method_test.rb
actionmailer-rack-upgrade-2-2.3.15 test/delivery_method_test.rb
actionmailer-2.3.15 test/delivery_method_test.rb
actionmailer-rack-upgrade-2.3.17 test/delivery_method_test.rb
actionmailer-rack-upgrade-2.3.16 test/delivery_method_test.rb
actionmailer-rack-upgrade-2.3.15 test/delivery_method_test.rb
actionmailer-rack-upgrade-2.3.14.1 test/delivery_method_test.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionmailer-2.3.14/test/delivery_method_test.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionmailer-2.3.12/test/delivery_method_test.rb
actionmailer-2.3.14 test/delivery_method_test.rb
kajam-1.0.3.rc2 vendor/rails/actionmailer/test/delivery_method_test.rb
actionmailer-2.3.12 test/delivery_method_test.rb