spec/../rbconfig_spec.rb: skip spec not working on MinGW

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
k0kubun 2019-02-23 02:22:05 +00:00
Родитель 0dab1fce7c
Коммит f22ffd83e9
1 изменённых файлов: 12 добавлений и 9 удалений

Просмотреть файл

@ -9,15 +9,18 @@ describe 'RbConfig::CONFIG' do
end
end
it "['rubylibdir'] returns the directory containing Ruby standard libraries" do
rubylibdir = RbConfig::CONFIG['rubylibdir']
File.directory?(rubylibdir).should == true
File.exist?("#{rubylibdir}/fileutils.rb").should == true
end
# On MinGW, RbConfig points to installed dir, and these tests fail when testing this from build dir on AppVeyor.
platform_is_not :mingw do
it "['rubylibdir'] returns the directory containing Ruby standard libraries" do
rubylibdir = RbConfig::CONFIG['rubylibdir']
File.directory?(rubylibdir).should == true
File.exist?("#{rubylibdir}/fileutils.rb").should == true
end
it "['archdir'] returns the directory containing standard libraries C extensions" do
archdir = RbConfig::CONFIG['archdir']
File.directory?(archdir).should == true
File.exist?("#{archdir}/etc.#{RbConfig::CONFIG['DLEXT']}").should == true
it "['archdir'] returns the directory containing standard libraries C extensions" do
archdir = RbConfig::CONFIG['archdir']
File.directory?(archdir).should == true
File.exist?("#{archdir}/etc.#{RbConfig::CONFIG['DLEXT']}").should == true
end
end
end