Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delayed_job crash reports. Fixes #291 #293

Merged
merged 2 commits into from
Sep 15, 2015

Conversation

jondeandres
Copy link
Contributor

Since serialization is made by JSON, we crashed delayed job reports
cause we were exploting the JSON & ActiveSupport bug. Now we get the job
data from job.payload_object.as_json.

I've added tests for this, testing two different scenarios:

  • method without arguments
  • method with arguments

Since serialization is made by JSON, we crashed delayed job reports
cause we were exploting the JSON & ActiveSupport bug. Now we get the job
data from job.payload_object.as_json.

I've added tests for this, testing two different scenarios:

- method without arguments
- method with arguments

Delete delayed_jobs before each spec.

Use job.as_json for delayed_job.
@brianr
Copy link
Member

brianr commented Sep 14, 2015

lgtm

jondeandres added a commit that referenced this pull request Sep 15, 2015
@jondeandres jondeandres merged commit fd86fbc into master Sep 15, 2015
@jondeandres jondeandres deleted the fix-delayed_job-reports branch September 15, 2015 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants