fixing spec so it works with jruby