Fix spec for jruby