summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-28 14:57:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-03-28 14:57:17 +0900
commit7072e0324ec7c083c46b7e6f566efa6a74206a07 (patch)
treeb94e397aa413963b01f041e35c7bd86b93a8f293
parent6eb3820aad1668b6b09c68929840dff2cfda04c0 (diff)
Guard RbConfig spec unless installed
-rw-r--r--spec/ruby/library/rbconfig/rbconfig_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/library/rbconfig/rbconfig_spec.rb b/spec/ruby/library/rbconfig/rbconfig_spec.rb
index be767536fb..4decb91c50 100644
--- a/spec/ruby/library/rbconfig/rbconfig_spec.rb
+++ b/spec/ruby/library/rbconfig/rbconfig_spec.rb
@@ -37,7 +37,7 @@ 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
if RbConfig::CONFIG['ENABLE_SHARED'] == 'yes'
libdir = RbConfig::CONFIG['libdir']