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