blob: ae944022139853f34a7155c1c825c0a6e087a279 [file]
require_relative "test_helper"
class RbConfigTest < StdlibTest
target RbConfig
def test_expand
RbConfig.expand("/home/userName/.rbenv/versions/2.7.0/bin")
RbConfig.expand("/home/userName/.rbenv/versions/2.7.0/bin", "UNICODE_VERSION"=>"12.1.0")
end
def test_fire_update!
# Add test on nothing changed
RbConfig.fire_update!("CC", "gcc-8")
RbConfig.fire_update!("CC", "gcc-8", "UNICODE_VERSION"=>"12.1.0")
RbConfig.fire_update!("CC", "gcc-8", "UNICODE_VERSION"=>"12.1.0", "PATH_SEPARATOR"=>":")
end
def test_ruby
RbConfig.ruby
end
end