summaryrefslogtreecommitdiff
path: root/test/did_you_mean/helper.rb
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2021-12-24 21:04:49 +0900
committerYuki Nishijima <yk.nishijima@gmail.com>2021-12-24 23:20:30 +0900
commitf9712b029bb6c34a2cf4131f8a54328740fd149f (patch)
treef316b03a092d8d7258862ab73b7e8c15ef7e849d /test/did_you_mean/helper.rb
parent8d940e3032055faa7271fc517c8f66ea34084542 (diff)
Sync did_you_mean
Diffstat (limited to 'test/did_you_mean/helper.rb')
-rw-r--r--test/did_you_mean/helper.rb4
1 files changed, 4 insertions, 0 deletions
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__))