diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index ef9b708..ae09d40 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -5,6 +5,7 @@ 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"