aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/cases
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-05-09 18:20:54 +0900
committerYuji Yaginuma <yuuji.yaginuma@gmail.com>2018-05-12 13:55:25 +0900
commit6fac9bd599eeb6b9cacdf7841811223402c501bd (patch)
tree0a743c8463000daa620bbc95b8e98f0005f2ece0 /activejob/test/cases
parent0018e68b5de0bcca3c567ef0141c8b8a35783a0f (diff)
downloadrails-6fac9bd599eeb6b9cacdf7841811223402c501bd.tar.gz
rails-6fac9bd599eeb6b9cacdf7841811223402c501bd.tar.bz2
rails-6fac9bd599eeb6b9cacdf7841811223402c501bd.zip
Pass the error instance as the second parameter of block executed by `discard_on`
I'm not sure what originally wanted to pass to the argument. However, as long as see the document added along with the commit, it seems just to be mistaken that trying to pass the error instance. https://github.com/rails/rails/pull/30622/files#diff-59beb0189c8c6bc862edf7fdb84ff5a7R64 Fixes #32853
Diffstat (limited to 'activejob/test/cases')
-rw-r--r--activejob/test/cases/exceptions_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activejob/test/cases/exceptions_test.rb b/activejob/test/cases/exceptions_test.rb
index bc33d79f61..15938e3fc7 100644
--- a/activejob/test/cases/exceptions_test.rb
+++ b/activejob/test/cases/exceptions_test.rb
@@ -61,7 +61,7 @@ class ExceptionsTest < ActiveJob::TestCase
test "custom handling of discarded job" do
perform_enqueued_jobs do
RetryJob.perform_later "CustomDiscardableError", 2
- assert_equal "Dealt with a job that was discarded in a custom way", JobBuffer.last_value
+ assert_equal "Dealt with a job that was discarded in a custom way. Message: CustomDiscardableError", JobBuffer.last_value
end
end