Fix spec under JRuby