Mercurial > hg > soundsoftware-site
view vendor/plugins/engines/test/functional/exception_notification_compatibility_test.rb @ 971:b80f97c892bc cannam
Merge from branch "get_statistics"
author | Chris Cannam |
---|---|
date | Fri, 19 Oct 2012 14:47:14 +0100 |
parents | 513646585e45 |
children |
line wrap: on
line source
require File.dirname(__FILE__) + '/../test_helper' class ExceptionNotificationCompatibilityTest < ActionController::TestCase ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com) class SimpleController < ApplicationController include ExceptionNotifiable local_addresses.clear consider_all_requests_local = false def index begin raise "Fail!" rescue Exception => e rescue_action_in_public(e) end end end def setup @controller = SimpleController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_should_work assert_nothing_raised do get :index end end end