Fix specs on JRuby