diff --git a/support/helpers/rspec_sql_matchers.rb b/support/helpers/rspec_sql_matchers.rb index b7b2f68e82..09a916aa27 100644 --- a/support/helpers/rspec_sql_matchers.rb +++ b/support/helpers/rspec_sql_matchers.rb @@ -1,6 +1,7 @@ # frozen_string_literal: true -require "active_support/isolated_execution_state" +require "active_support/version" +require "active_support/isolated_execution_state" if ActiveSupport.version >= Gem::Version.new("7.0") require "active_support/notifications" ::RSpec::Matchers.define :match_query_count do |expected_count|