Fix specs under Ruby 1.8