spec fix for jruby