ENV['RAILS_ENV'] = 'test' # Load the Rails application. require_relative "application" # Initialize the Rails application. Rails.application.initialize!