aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/integration
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2018-05-01 13:33:50 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2018-05-01 13:33:50 -0400
commit5b9cd1a57992a47f323cefc9dd785a45468759b0 (patch)
tree662584a67ac1b6dd84abc54f3ba0dc10ac078f5e /activejob/test/integration
parentac2bc00482c1cf47a57477edb6ab1426a3ba593c (diff)
downloadrails-5b9cd1a57992a47f323cefc9dd785a45468759b0.tar.gz
rails-5b9cd1a57992a47f323cefc9dd785a45468759b0.tar.bz2
rails-5b9cd1a57992a47f323cefc9dd785a45468759b0.zip
Make sure that when serialing an just deserialized job arguments are there
When a job was just deserialized `arguments` is `nil` and the serialized arguments are in the `@serialized_arguments` variable. If we try to serialize this job again the arguments are going to be `nil` instead of what was serialized. The test we had was not checking this case because it was deserializing the job in the same object that had the arguments. To fix this, when the `@serialized_arguments` are present we return it instead of the result of the `arguments` serialized.
Diffstat (limited to 'activejob/test/integration')
0 files changed, 0 insertions, 0 deletions