Fixing spec for jruby