ruby-changes:54959
From: nobu <ko1@a...>
Date: Tue, 5 Mar 2019 09:28:29 +0900 (JST)
Subject: [ruby-changes:54959] nobu:r67165 (trunk): Directories in RbConfig may not exist until installation
nobu 2019-03-05 09:28:22 +0900 (Tue, 05 Mar 2019) New Revision: 67165 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67165 Log: Directories in RbConfig may not exist until installation Modified files: trunk/spec/ruby/library/rbconfig/rbconfig_spec.rb Index: spec/ruby/library/rbconfig/rbconfig_spec.rb =================================================================== --- spec/ruby/library/rbconfig/rbconfig_spec.rb (revision 67164) +++ spec/ruby/library/rbconfig/rbconfig_spec.rb (revision 67165) @@ -9,8 +9,8 @@ describe 'RbConfig::CONFIG' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rbconfig/rbconfig_spec.rb#L9 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/