diff --git a/test/app_helper.rb b/test/app_helper.rb index dd128dca..c5e24f44 100644 --- a/test/app_helper.rb +++ b/test/app_helper.rb @@ -2,6 +2,15 @@ require "rails/test_help" require "fileutils" +if Gem::Version.new(Rails.version) < Gem::Version.new("7.1") + module Rails::Generators::AppName + private + def valid_const? + true + end + end +end + module RailsAppHelpers def self.included(base) base.include ActiveSupport::Testing::Isolation