Skip to content

Commit a29152a

Browse files
nobueregon
authored andcommitted
rbconfig_spec.rb: removed needless windows guard
This reverts commit 34b0a7be0ed2fd4ca4d1d509a22964b5e61dfe34.
1 parent 249a36c commit a29152a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

library/rbconfig/rbconfig_spec.rb

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,15 @@
3737
RUBY
3838
end
3939

40-
platform_is_not :windows do
41-
guard -> {RbConfig::TOPDIR} do
42-
it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do
43-
libdir = RbConfig::CONFIG[RbConfig::CONFIG['libdirname'] || 'libdir']
44-
libruby_so = "#{libdir}/#{RbConfig::CONFIG['LIBRUBY_SO']}"
45-
case RbConfig::CONFIG['ENABLE_SHARED']
46-
when 'yes'
47-
File.should.exist?(libruby_so)
48-
when 'no'
49-
File.should_not.exist?(libruby_so)
50-
end
40+
guard -> {RbConfig::TOPDIR} do
41+
it "libdir/LIBRUBY_SO is the path to libruby and it exists if and only if ENABLE_SHARED" do
42+
libdir = RbConfig::CONFIG[RbConfig::CONFIG['libdirname'] || 'libdir']
43+
libruby_so = "#{libdir}/#{RbConfig::CONFIG['LIBRUBY_SO']}"
44+
case RbConfig::CONFIG['ENABLE_SHARED']
45+
when 'yes'
46+
File.should.exist?(libruby_so)
47+
when 'no'
48+
File.should_not.exist?(libruby_so)
5149
end
5250
end
5351
end

0 commit comments

Comments
 (0)