Fix specs under Ruby 1.9