summaryrefslogtreecommitdiff
path: root/test/did_you_mean/helper.rb
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2021-12-22 20:29:18 +0900
committerYuki Nishijima <yk.nishijima@gmail.com>2021-12-22 20:29:18 +0900
commitac4e0978ee4358430396403065eabe1aca05784f (patch)
treed40cd51abf97cb03a4c5ed9c3da89dbc5b9e7128 /test/did_you_mean/helper.rb
parentfdf39963490cf2cf95b30d91bb9b35964c2c2350 (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__))