Sha256: 377feb85844ae01c9179f152cc8aae9eb80b0a6b7944160891fee2cbbd5d0d9d

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

require 'test_helper'

class EmailSenderTest < Test::Unit::TestCase

  def test_email_configuration_with_strings
    p = ErrorStalker::Plugin::EmailSender.new(nil, {'to' => nil, 'from' => nil, 'delivery_method' => 'sendmail'})
    e = ErrorStalker::ExceptionReport.new(:exception => 'test', :application => 'test', :data => {})
    mail = p.build_email(e, nil)
    assert_equal Mail::Sendmail, mail.delivery_method.class
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
error_stalker-0.0.16 test/unit/plugins/email_sender_test.rb
error_stalker-0.0.15 test/unit/plugins/email_sender_test.rb
error_stalker-0.0.14 test/unit/plugins/email_sender_test.rb
error_stalker-0.0.13 test/unit/plugins/email_sender_test.rb
error_stalker-0.0.12 test/unit/plugins/email_sender_test.rb