Reorder includes for spec_helper and rails_helper

This commit is contained in:
Sebastian Serth
2024-06-14 18:21:16 +02:00
committed by Dominic Sauer
parent 9dd3f94d04
commit dc21c31f9d
2 changed files with 8 additions and 2 deletions

View File

@ -5,11 +5,14 @@ ENV['RAILS_ENV'] ||= 'test'
require 'spec_helper'
require 'support/prometheus_client_stub'
require File.expand_path('../config/environment', __dir__)
# Prevent database truncation if the environment is production
abort('The Rails environment is running in production mode!') if Rails.env.production?
# Add additional requires below this line. Rails is not loaded until this point!
require 'rspec/rails'
require 'pundit/rspec'
# Add additional requires below this line. Rails is not loaded until this point!
require 'webmock/rspec'
# Requires supporting ruby files with custom matchers and macros, etc, in
# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are