fix specs in ruby 1.8