1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
require 'test/unit'
require 'test/test_helper'
require 'java'
# This tests JRuby-specific environment stuff, like JRUBY_VERSION
class TestEnv < Test::Unit::TestCase
include TestHelper
def test_jruby_version
assert defined? JRUBY_VERSION
assert String === JRUBY_VERSION
assert_equal(org.jruby.runtime.Constants::VERSION, JRUBY_VERSION)
end
if WINDOWS
def test_case_insensitive_on_windows
path = ENV['PATH']
cased_path = ENV['path']
assert_equal(path, cased_path)
end
end
end
|