From 3cc9a126794d16470f87ae70ef354f3adc6d027f Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Mon, 10 Jun 2024 13:19:52 +0300 Subject: [PATCH] Fix CI when YJIT is enabled --- spec/ruby/library/rbconfig/rbconfig_spec.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spec/ruby/library/rbconfig/rbconfig_spec.rb b/spec/ruby/library/rbconfig/rbconfig_spec.rb index 8e38227c21e2b0..3e06219621f570 100644 --- a/spec/ruby/library/rbconfig/rbconfig_spec.rb +++ b/spec/ruby/library/rbconfig/rbconfig_spec.rb @@ -144,11 +144,13 @@ end describe "RUBY_DESCRIPTION" do - it "contains version" do - RUBY_DESCRIPTION.should.include? RUBY_VERSION - end + guard_not -> { RUBY_ENGINE == "ruby" && !RbConfig::TOPDIR } do + it "contains version" do + RUBY_DESCRIPTION.should.include? RUBY_VERSION + end - it "contains RUBY_PLATFORM" do - RUBY_DESCRIPTION.should.include? RUBY_PLATFORM + it "contains RUBY_PLATFORM" do + RUBY_DESCRIPTION.should.include? RUBY_PLATFORM + end end end