Skip to content

Commit 6aeccc3

Browse files
committed
Fix build on 1.8.7
1 parent 284f4ee commit 6aeccc3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/resque_failure_redis_test.rb

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

4-
require 'json'
4+
unless defined?(JSON)
5+
module JSON
6+
class GeneratorError
7+
end
8+
end
9+
end
510

611
describe "Resque::Failure::Redis" do
712
before do

0 commit comments

Comments
 (0)