Skip to content

Commit

Permalink
move pre loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeheft committed Jul 8, 2024
1 parent df2233a commit 107aaa0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

# This file is copied to spec/ when you run 'rails generate rspec:install'
ENV["RAILS_ENV"] ||= "test"
Dir[Rails.root.join("app/middleware/*.{rb}")].each { |file| require file }
require_relative "../config/environment"
# Prevent database truncation if the environment is production
abort("The Rails environment is running in production mode!") if Rails.env.production?
Dir[Rails.root.join("app/middleware/*.{rb}")].each { |file| require file }

require "rspec/rails"
require "spec_helper"
require "webmock/rspec"
Expand Down

0 comments on commit 107aaa0

Please sign in to comment.