How about using `defined?(JRUBY_VERSION)` as we are doing same for other tests