diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-28 22:19:21 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-04 11:18:23 +0900 |
commit | 4a716455652d9924d8ef9b0a1527cb0bef90ee2f (patch) | |
tree | b07018fe1057b27290b3c80db3f6c57b7e772ed2 /spec | |
parent | 7f82c8cd470b5e262749c455f6e0cef055b365bb (diff) | |
download | ruby-4a716455652d9924d8ef9b0a1527cb0bef90ee2f.tar.gz |
rbconfig_spec.rb: removed needless windows guard
This reverts commit 34b0a7be0ed2fd4ca4d1d509a22964b5e61dfe34.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/library/rbconfig/rbconfig_spec.rb | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/spec/ruby/library/rbconfig/rbconfig_spec.rb b/spec/ruby/library/rbconfig/rbconfig_spec.rb index 0ac2f1d0f1..4d6824dfb4 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 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 |