Fix spec under jruby
Merge remote-tracking branch 'upstream/master'