Sha256: 284e3455cd528ccbc723e92010be08876822e411c36c7607fb3c242619c9d2cf

Contents?: true

Size: 1.09 KB

Versions: 10

Compression:

Stored size: 1.09 KB

Contents

require 'test/unit'
require 'rubygems'

require 'active_support'
require 'actionmailer'
require 'active_record'

#just requiring active record wasn't loading classes soon enough for SILENT_EXCEPTIONS
ActiveRecord::Base

require 'action_controller'
require 'action_controller/test_case'
require 'action_controller/test_process'

#just requiring action controller wasn't loading classes soon enough for SILENT_EXCEPTIONS
ActionController::Base

RAILS_ROOT = '.' unless defined?(RAILS_ROOT)
RAILS_ENV = 'test' unless defined?(RAILS_ENV)
RAILS_DEFAULT_LOGGER = Logger.new(StringIO.new) unless defined?(RAILS_DEFAULT_LOGGER)
#$:.unshift File.join(File.dirname(__FILE__), '../lib')

require File.join(File.dirname(__FILE__), "..", "init")

ExceptionNotifier.configure_exception_notifier do |config|
  # If left empty web hooks will not be engaged
  config[:web_hooks]                = []
  config[:exception_recipients]     = ["test.errors@example.com"]
  config[:view_path]                = File.join(File.dirname(__FILE__), "mocks")
  config[:skip_local_notification]  = false
  config[:notify_other_errors]      = true
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
super_exception_notifier-2.0.8 test/test_helper.rb
super_exception_notifier-2.0.7 test/test_helper.rb
super_exception_notifier-2.0.6 test/test_helper.rb
super_exception_notifier-2.0.5 test/test_helper.rb
bmpercy-exception_notification-2.0.5 test/test_helper.rb
super_exception_notifier-2.0.4 test/test_helper.rb
super_exception_notifier-2.0.3 test/test_helper.rb
super_exception_notifier-2.0.2 test/test_helper.rb
super_exception_notifier-2.0.1 test/test_helper.rb
super_exception_notifier-2.0.0 test/test_helper.rb