annotate .svn/pristine/61/61a91d37bba4f376ceeb50ad99e25e5c58c85000.svn-base @ 1519:afce8026aaeb redmine-2.4-integration

Merge from branch "live"
author Chris Cannam
date Tue, 09 Sep 2014 09:34:53 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 require File.dirname(__FILE__) + '/../test_helper'
Chris@909 2
Chris@909 3 class ExceptionNotificationCompatibilityTest < ActionController::TestCase
Chris@909 4 ExceptionNotifier.exception_recipients = %w(joe@schmoe.com bill@schmoe.com)
Chris@909 5 class SimpleController < ApplicationController
Chris@909 6 include ExceptionNotifiable
Chris@909 7 local_addresses.clear
Chris@909 8 consider_all_requests_local = false
Chris@909 9 def index
Chris@909 10 begin
Chris@909 11 raise "Fail!"
Chris@909 12 rescue Exception => e
Chris@909 13 rescue_action_in_public(e)
Chris@909 14 end
Chris@909 15 end
Chris@909 16 end
Chris@909 17
Chris@909 18 def setup
Chris@909 19 @controller = SimpleController.new
Chris@909 20 @request = ActionController::TestRequest.new
Chris@909 21 @response = ActionController::TestResponse.new
Chris@909 22 end
Chris@909 23
Chris@909 24 def test_should_work
Chris@909 25 assert_nothing_raised do
Chris@909 26 get :index
Chris@909 27 end
Chris@909 28 end
Chris@909 29 end