Skip to content

Commit 60f5365

Browse files
committed
Remove extra assertion.
This is really testing the library. And it breaks the build on 1.8.7.
1 parent 8037d95 commit 60f5365

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/resque_failure_redis_test.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
require 'test_helper'
22
require 'resque/failure/redis'
33

4-
unless defined?(JSON)
5-
module JSON
6-
class GeneratorError
7-
end
8-
end
9-
end
10-
114
context "Resque::Failure::Redis" do
125
setup do
136
@bad_string = [39, 250, 141, 168, 138, 191, 52, 211, 159, 86, 93, 95, 39].map { |c| c.chr }.join
@@ -20,10 +13,6 @@ class GeneratorError
2013

2114
test 'cleans up bad strings before saving the failure, in order to prevent errors on the resque UI' do
2215
# test assumption: the bad string should not be able to round trip though JSON
23-
assert_raises(MultiJson::DecodeError, JSON::GeneratorError) {
24-
MultiJson.decode(MultiJson.encode(@bad_string))
25-
}
26-
2716
@redis_backend.save
2817
Resque::Failure::Redis.all # should not raise an error
2918
end

0 commit comments

Comments
 (0)