Fixes 1291. Sidekiq - Minitest error: NoMethodError: unmocked method :==, expected one of []
Merge with jruby-1_7