dotenv: load .env.local before initializers.

This commit is contained in:
evazion
2019-08-23 19:00:26 -05:00
parent bb82011bb2
commit 0b78485227
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
# Load the Rails application.
require_relative 'application'
Dotenv.load(Rails.root + ".env.local")
# Initialize the Rails application.
Rails.application.initialize!

View File

@@ -16,8 +16,6 @@ require 'webmock/minitest'
Dir[File.expand_path(File.dirname(__FILE__) + "/factories/*.rb")].each {|file| require file}
Dir[File.expand_path(File.dirname(__FILE__) + "/test_helpers/*.rb")].each {|file| require file}
Dotenv.load(Rails.root + ".env.local")
Shoulda::Matchers.configure do |config|
config.integrate do |with|
with.test_framework :minitest