Skip to content

Commit ac7f29a

Browse files
committed
Use send for class_variable_get for ruby 1.8 compatiblity.
1 parent a906d55 commit ac7f29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/worker_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def self.on_failure_store_exception(exc, *args)
707707
$TESTING = false
708708
Resque.enqueue(SuicidalJob)
709709
@worker.work(0)
710-
assert_equal Resque::DirtyExit, SuicidalJob.class_variable_get(:@@failure_exception).class
710+
assert_equal Resque::DirtyExit, SuicidalJob.send(:class_variable_get, :@@failure_exception).class
711711
ensure
712712
$TESTING = true
713713
end

0 commit comments

Comments
 (0)