Skip to content

Commit

Permalink
rbconfig_spec.rb: removed needless windows guard
Browse files Browse the repository at this point in the history
This reverts commit 34b0a7b.
  • Loading branch information
nobu committed Apr 4, 2020
1 parent 7f82c8c commit 4a71645
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions spec/ruby/library/rbconfig/rbconfig_spec.rb
Expand Up @@ -37,17 +37,15 @@
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
Expand Down

0 comments on commit 4a71645

Please sign in to comment.