From 5b6960d3bbfe9b5787e8610d540b5a04b8cdff6e Mon Sep 17 00:00:00 2001 From: Joenio Costa Date: Thu, 3 Mar 2011 12:15:22 -0300 Subject: [PATCH] Fixed 1 exception_notification integration test that was failing --- test/integration/exception_notification_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/exception_notification_test.rb b/test/integration/exception_notification_test.rb index bb3c3da..6df68ab 100644 --- a/test/integration/exception_notification_test.rb +++ b/test/integration/exception_notification_test.rb @@ -9,9 +9,9 @@ class ExceptionNotificationTest < ActionController::IntegrationTest ActionMailer::Base.delivery_method = :test ActionMailer::Base.perform_deliveries = true ActionMailer::Base.deliveries = [] - AccountController.any_instance.stubs(:signup).raises(RuntimeError) - AccountController.any_instance.stubs(:local_request?).returns(false) - AccountController.any_instance.stubs(:consider_all_requests_local).returns(false) + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:signup).raises(RuntimeError)} + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:local_request?).returns(false)} + [ProfileController, AccountController].each{|klass| klass.any_instance.stubs(:consider_all_requests_local).returns(false)} end should 'deliver mail notification about exceptions' do -- libgit2 0.21.2