chore: various tweaks to support running tests in the CI

This commit is contained in:
Adam Cooke
2021-07-26 17:40:56 +00:00
parent 9288d642b9
commit c09ab62d0c
21 changed files with 334 additions and 103 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
ENV['POSTAL_CONFIG_ROOT'] = File.expand_path('../config', __FILE__)
ENV['POSTAL_CONFIG_ROOT'] ||= File.expand_path('../config', __FILE__)
require File.expand_path('../../config/environment', __FILE__)
require 'rspec/rails'
@@ -6,6 +6,9 @@ require 'spec_helper'
require 'factory_bot'
require 'database_cleaner'
DatabaseCleaner.allow_remote_database_url = true
ActiveRecord::Base.logger = Logger.new("/dev/null")
FACTORIES_EXCLUDED_FROM_LINT = []
Dir[File.expand_path('../factories/*.rb', __FILE__)].each { |f| require f }