diff --git a/spec/datadog/di/spec_helper.rb b/spec/datadog/di/spec_helper.rb index b8817efbb02..34e022dd473 100644 --- a/spec/datadog/di/spec_helper.rb +++ b/spec/datadog/di/spec_helper.rb @@ -6,6 +6,11 @@ def di_test skip "Dynamic instrumentation is not supported on JRuby" end end + if RUBY_VERSION < '2.6' + before(:all) do + skip "Dynamic instrumentation requires Ruby 2.6 or higher" + end + end end end end