Sha256: 5b3ce6214efea6d94646655903fc9d2cc944b4a349b4b5e6bf7223adc9ffb54b

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

require 'test_helper'

class ExceptionNotificationTest < ActiveSupport::TestCase
  test "should have default ignored exceptions" do
    assert ExceptionNotifier.default_ignore_exceptions == [ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]
  end

  test "should have default sender address overriden" do
    assert ExceptionNotifier::Notifier.default_sender_address == %("Dummy Notifier" <dummynotifier@example.com>)
  end

  test "should have default email prefix overriden" do
    assert ExceptionNotifier::Notifier.default_email_prefix == "[Dummy ERROR] "
  end

  test "should have default sections" do
    assert ExceptionNotifier::Notifier.default_sections == %w(request session environment backtrace)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exception_notification-2.5.2 test/exception_notification_test.rb
exception_notification-2.5.1 test/exception_notification_test.rb
exception_notification-2.5.0 test/exception_notification_test.rb