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:
parent
0dab1fce7c
commit
f22ffd83e9
1 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue