Fix spec for JRuby