ruby-changes:60649
From: Nobuyoshi <ko1@a...>
Date: Sat, 4 Apr 2020 11:19:26 +0900 (JST)
Subject: [ruby-changes:60649] 4a71645565 (master): rbconfig_spec.rb: removed needless windows guard
https://git.ruby-lang.org/ruby.git/commit/?id=4a71645565 From 4a716455652d9924d8ef9b0a1527cb0bef90ee2f Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 28 Mar 2020 22:19:21 +0900 Subject: rbconfig_spec.rb: removed needless windows guard This reverts commit 34b0a7be0ed2fd4ca4d1d509a22964b5e61dfe34. diff --git a/spec/ruby/library/rbconfig/rbconfig_spec.rb b/spec/ruby/library/rbconfig/rbconfig_spec.rb index 0ac2f1d..4d6824d 100644 --- a/spec/ruby/library/rbconfig/rbconfig_spec.rb +++ b/spec/ruby/library/rbconfig/rbconfig_spec.rb @@ -37,17 +37,15 @@ describe 'RbConfig::CONFIG' do https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/rbconfig/rbconfig_spec.rb#L37 RUBY end - platform_is_not :windows do - guard -> {RbConfig::TOPDIR} do - it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do - libdir = RbConfig::CONFIG[RbConfig::CONFIG['libdirname'] || 'libdir'] - libruby_so = "#{libdir}/#{RbConfig::CONFIG['LIBRUBY_SO']}" - case RbConfig::CONFIG['ENABLE_SHARED'] - when 'yes' - File.should.exist?(libruby_so) - when 'no' - File.should_not.exist?(libruby_so) - end + guard -> {RbConfig::TOPDIR} do + it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do + libdir = RbConfig::CONFIG[RbConfig::CONFIG['libdirname'] || 'libdir'] + libruby_so = "#{libdir}/#{RbConfig::CONFIG['LIBRUBY_SO']}" + case RbConfig::CONFIG['ENABLE_SHARED'] + when 'yes' + File.should.exist?(libruby_so) + when 'no' + File.should_not.exist?(libruby_so) end end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/