Fix specs on JRuby.