From 505dfae05d56d844ea150676edb87850a406d071 Mon Sep 17 00:00:00 2001 From: Yuki Nishijima Date: Tue, 21 Dec 2021 19:03:10 +0900 Subject: * gems/default_gems: Sync did_you_mean --- test/did_you_mean/helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/did_you_mean/helper.rb') diff --git a/test/did_you_mean/helper.rb b/test/did_you_mean/helper.rb index d8aa41c3d1..7cb7b10282 100644 --- a/test/did_you_mean/helper.rb +++ b/test/did_you_mean/helper.rb @@ -4,6 +4,10 @@ module DidYouMean module TestHelper class << self attr_reader :root + + def ractor_compatible? + defined?(Ractor) && RUBY_VERSION >= "3.1.0" + end end if File.file?(File.expand_path('../lib/did_you_mean.rb', __dir__)) -- cgit v1.2.3