diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-23 02:22:05 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-23 02:22:05 +0000 |
commit | f22ffd83e92a214a697e93fe715d29cbfa52084d (patch) | |
tree | 52a348a178fef24603d0a595247097538606bfe5 /spec/ruby | |
parent | 0dab1fce7c1eec3b67340e32678841151119beb1 (diff) | |
download | ruby-f22ffd83e92a214a697e93fe715d29cbfa52084d.tar.gz |
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
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/library/rbconfig/rbconfig_spec.rb | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/spec/ruby/library/rbconfig/rbconfig_spec.rb b/spec/ruby/library/rbconfig/rbconfig_spec.rb index af74043c9c..3f85523355 100644 --- a/spec/ruby/library/rbconfig/rbconfig_spec.rb +++ b/spec/ruby/library/rbconfig/rbconfig_spec.rb @@ -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 |