Force-skip a LOAD_PATH spec for rhel_zlinux

This commit is contained in:
Takashi Kokubun 2024-05-29 09:56:55 -07:00
parent 3cab9b9979
commit 6e9dbcbacc

View File

@ -881,14 +881,13 @@ describe "Execution variable $:" do
it "default $LOAD_PATH entries until sitelibdir included have @gem_prelude_index set" do
skip "no sense in ruby itself" if MSpecScript.instance_variable_defined?(:@testing_ruby)
skip "rhel_zlinux seems failing due to its own setup issue" if ENV['RUBYCI_NICKNAME'] == 'rhel_zlinux'
$:.should.include?(RbConfig::CONFIG['sitelibdir'])
idx = $:.index(RbConfig::CONFIG['sitelibdir'])
$:[idx..-1].all? { |p| p.instance_variable_defined?(:@gem_prelude_index) }.should be_true
$:[0...idx].all? { |p| !p.instance_variable_defined?(:@gem_prelude_index) }.should be_true
end
end if false # no sense in ruby itself. skip is not working for rhel_zlinux for some reason
end
describe "Global variable $\"" do