Fixes 1291. Sidekiq - Minitest error: NoMethodError: unmocked method :==, expected one of []