Fixing dependency on ruby > 2 in specs