aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
Diffstat (limited to 'activejob/CHANGELOG.md')
-rw-r--r--activejob/CHANGELOG.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md
index 829b1c719b..794d05d1b4 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,5 +1,7 @@
* Add `:only` option to `assert_enqueued_jobs`, to check the number of times
- a specific kind of job is enqueued:
+ a specific kind of job is enqueued.
+
+ Example:
def test_logging_job
assert_enqueued_jobs 1, only: LoggingJob do
@@ -14,7 +16,9 @@
Since `ActiveJob::Base#deserialize` can be overridden by subclasses (like
`ActiveJob::Base#serialize`) this allows jobs to attach arbitrary metadata
- when they get serialized and read it back when they get performed. Example:
+ when they get serialized and read it back when they get performed.
+
+ Example:
class DeliverWebhookJob < ActiveJob::Base
def serialize