fix spec for jruby