mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rbconfig_spec.rb: removed needless windows guard
This reverts commit 34b0a7be0e
.
This commit is contained in:
parent
7f82c8cd47
commit
4a71645565
1 changed files with 9 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue