Specs use JRUBY_VERSION instead of RUBY_VERSION

As RUBY_VERSION in general is not guaranteed to contain the version, and
on Travis in particular is jruby-$JRUBY_VERSION-d1[89], it does not make
sense to rely on it in the tests.