From 9f5cebdbd72cc8e6035fcd743c5f392a1edf2b42 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Sun, 7 Aug 2011 00:58:41 -0300 Subject: [PATCH] Fix wrong variable on tests. --- test/background_exception_notification_test.rb | 2 +- test/dummy/test/functional/posts_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/background_exception_notification_test.rb b/test/background_exception_notification_test.rb index 725bcf80..2721a562 100644 --- a/test/background_exception_notification_test.rb +++ b/test/background_exception_notification_test.rb @@ -44,7 +44,7 @@ class BackgroundExceptionNotificationTest < ActiveSupport::TestCase rescue => e @ignored_exception = e unless ExceptionNotifier.default_ignore_exceptions.include?(@ignored_exception.class) - @ignored_mail = ExceptionNotifier::Notifier.background_exception_notification(@exception) + @ignored_mail = ExceptionNotifier::Notifier.background_exception_notification(@ignored_exception) end end diff --git a/test/dummy/test/functional/posts_controller_test.rb b/test/dummy/test/functional/posts_controller_test.rb index 27ba275b..938a4166 100644 --- a/test/dummy/test/functional/posts_controller_test.rb +++ b/test/dummy/test/functional/posts_controller_test.rb @@ -49,7 +49,7 @@ class PostsControllerTest < ActionController::TestCase rescue => e @ignored_exception = e unless ExceptionNotifier.default_ignore_exceptions.include?(@ignored_exception.class) - @ignored_mail = ExceptionNotifier::Notifier.exception_notification(request.env, @exception) + @ignored_mail = ExceptionNotifier::Notifier.exception_notification(request.env, @ignored_exception) end end