Fix spec on JRUBY 1.8 mode