Fix specs failing with ruby 1.9