1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
parent 0dab1fce7c
commit f22ffd83e9

View file

@ -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