Fix specs on Ruby 1.8.7
Ruby JRuby specs in 1.9 mode