Skip to content

Commit 9f5cebd

Browse files
committed
Fix wrong variable on tests.
1 parent 61e77a1 commit 9f5cebd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/background_exception_notification_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class BackgroundExceptionNotificationTest < ActiveSupport::TestCase
4444
rescue => e
4545
@ignored_exception = e
4646
unless ExceptionNotifier.default_ignore_exceptions.include?(@ignored_exception.class)
47-
@ignored_mail = ExceptionNotifier::Notifier.background_exception_notification(@exception)
47+
@ignored_mail = ExceptionNotifier::Notifier.background_exception_notification(@ignored_exception)
4848
end
4949
end
5050

test/dummy/test/functional/posts_controller_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PostsControllerTest < ActionController::TestCase
4949
rescue => e
5050
@ignored_exception = e
5151
unless ExceptionNotifier.default_ignore_exceptions.include?(@ignored_exception.class)
52-
@ignored_mail = ExceptionNotifier::Notifier.exception_notification(request.env, @exception)
52+
@ignored_mail = ExceptionNotifier::Notifier.exception_notification(request.env, @ignored_exception)
5353
end
5454
end
5555

0 commit comments

Comments
 (0)