Fix specs for JRuby.