dotenv: load .env.local before initializers.
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# Load the Rails application.
|
# Load the Rails application.
|
||||||
require_relative 'application'
|
require_relative 'application'
|
||||||
|
|
||||||
|
Dotenv.load(Rails.root + ".env.local")
|
||||||
|
|
||||||
# Initialize the Rails application.
|
# Initialize the Rails application.
|
||||||
Rails.application.initialize!
|
Rails.application.initialize!
|
||||||
|
|||||||
@@ -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__) + "/factories/*.rb")].each {|file| require file}
|
||||||
Dir[File.expand_path(File.dirname(__FILE__) + "/test_helpers/*.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|
|
Shoulda::Matchers.configure do |config|
|
||||||
config.integrate do |with|
|
config.integrate do |with|
|
||||||
with.test_framework :minitest
|
with.test_framework :minitest
|
||||||
|
|||||||
Reference in New Issue
Block a user