Directories in RbConfig may not exist until installation

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-03-05 00:28:22 +00:00
Родитель ba982a3da3
Коммит 19d3aaff5c
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -9,8 +9,8 @@ describe 'RbConfig::CONFIG' do
end
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
# These directories have no meanings before the installation.
if RbConfig::TOPDIR
it "['rubylibdir'] returns the directory containing Ruby standard libraries" do
rubylibdir = RbConfig::CONFIG['rubylibdir']
File.directory?(rubylibdir).should == true