summaryrefslogtreecommitdiff
path: root/test/did_you_mean/helper.rb
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2021-12-21 19:03:10 +0900
committerYuki Nishijima <yk.nishijima@gmail.com>2021-12-21 19:03:25 +0900
commit505dfae05d56d844ea150676edb87850a406d071 (patch)
tree76ecd819384b101f76c7d4179922ea41bf4a6e98 /test/did_you_mean/helper.rb
parent12fa4f2aceff06aeff028a3c72ec8791f78bfdb0 (diff)
* gems/default_gems: 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__))