diff --git a/spec/yjit_spec.rb b/spec/yjit_spec.rb index b7f7112..d29305e 100644 --- a/spec/yjit_spec.rb +++ b/spec/yjit_spec.rb @@ -6,7 +6,7 @@ # This method should not blow up in any case expect { described_class.instrument }.not_to raise_error - if defined? RubyVM::YJIT && defined? RubyVM::YJIT.enable + if defined?(RubyVM::YJIT) && defined?(RubyVM::YJIT.enable) # We want to test that this doesn't blow up when yjit is present but isn't enabled yet # you need to run the testsuite with yjit disabled for this to work