aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/CHANGELOG.md
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2018-10-09 13:46:16 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2018-10-12 12:15:16 -0400
commit3ebc22903433b97b38935778b955b53bc90447f6 (patch)
tree9d1f2fd0cbd09880b6a63212e1cb879a3938677a /activejob/CHANGELOG.md
parentc9e0a61db11b254d63169149fec5a263caa669db (diff)
downloadrails-3ebc22903433b97b38935778b955b53bc90447f6.tar.gz
rails-3ebc22903433b97b38935778b955b53bc90447f6.tar.bz2
rails-3ebc22903433b97b38935778b955b53bc90447f6.zip
Include deserialized arguments in jobs returned by AJ test helpers
`assert_enqueued_with` and `assert_performed_with` return a instantiated instance of the matching job for further assertion (#21010). Before this commit the `arguments` method on the returned instance returns a serialized version of the arguments.
Diffstat (limited to 'activejob/CHANGELOG.md')
-rw-r--r--activejob/CHANGELOG.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/activejob/CHANGELOG.md b/activejob/CHANGELOG.md
index af5c197bac..768e6bd250 100644
--- a/activejob/CHANGELOG.md
+++ b/activejob/CHANGELOG.md
@@ -1,3 +1,8 @@
+* Include deserialized arguments in job instances returned from
+ `assert_enqueued_with` and `assert_performed_with`
+
+ *Alan Wu*
+
* Allow `assert_enqueued_with`/`assert_performed_with` methods to accept
a proc for the `args` argument. This is useful to check if only a subset of arguments
matches your expectations.