Skip to content

Commit 72a3b22

Browse files
committed
Fix expected exceptions on JRuby.
JRuby in 18 mode throws a different exception than we expect.
1 parent 8006ffd commit 72a3b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/resque_failure_redis_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
it 'cleans up bad strings before saving the failure, in order to prevent errors on the resque UI' do
1515
# test assumption: the bad string should not be able to round trip though JSON
16-
assert_raises(MultiJson::DecodeError) {
16+
assert_raises(MultiJson::DecodeError, JSON::GeneratorError) {
1717
MultiJson.decode(MultiJson.encode(@bad_string))
1818
}
1919

0 commit comments

Comments
 (0)