spec fix for ruby 2+