diff options
author | Cristian Bica <cristian.bica@gmail.com> | 2014-09-03 10:38:02 +0300 |
---|---|---|
committer | Cristian Bica <cristian.bica@gmail.com> | 2014-09-03 14:23:47 +0300 |
commit | 56f992fe150f9fc2396e31fe7391b4cf018f55dc (patch) | |
tree | ab80906fcdb25affbe43a5de0c2da3e938929759 /activejob/test/cases | |
parent | a4de217ce586740284238d907153750c0ce3e263 (diff) | |
download | rails-56f992fe150f9fc2396e31fe7391b4cf018f55dc.tar.gz rails-56f992fe150f9fc2396e31fe7391b4cf018f55dc.tar.bz2 rails-56f992fe150f9fc2396e31fe7391b4cf018f55dc.zip |
Fix for double ActiveJob::DeserializationErorr
Diffstat (limited to 'activejob/test/cases')
-rw-r--r-- | activejob/test/cases/rescue_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activejob/test/cases/rescue_test.rb b/activejob/test/cases/rescue_test.rb index d9ea3c91d7..3af147383e 100644 --- a/activejob/test/cases/rescue_test.rb +++ b/activejob/test/cases/rescue_test.rb @@ -28,4 +28,9 @@ class RescueTest < ActiveSupport::TestCase assert_includes JobBuffer.values, 'DeserializationError original exception was Person::RecordNotFound' assert_not_includes JobBuffer.values, 'performed beautifully' end + + test "should not wrap DeserializationError in DeserializationError" do + RescueJob.enqueue [Person.new(404)] + assert_includes JobBuffer.values, 'DeserializationError original exception was Person::RecordNotFound' + end end |