diff --git a/config/boot.rb b/config/boot.rb index 37ccc74b87b..eb2ddd9b742 100644 --- a/config/boot.rb +++ b/config/boot.rb @@ -2,7 +2,7 @@ unless File.exist?(File.expand_path('../Gemfile.in', __dir__)) ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) - # Set up boootsnap on Ruby 2.3+ in development env with Bundler enabled and development group + # Set up boootsnap on Ruby 2.7+ in development and test env with Bundler enabled and development/test group early_env = ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development" require 'active_support/dependencies' require('bootsnap/setup') if %w[development test].include?(early_env) && File.exist?(ENV['BUNDLE_GEMFILE']) && !Gem::Specification.stubs_for("bootsnap").empty?