Update dotenv.

dotenv-2.2.1 no longer loads .env.local in the test environment. Load it
manually for backwards compatibility.
This commit is contained in:
evazion
2018-01-20 18:25:59 -06:00
parent 074a4be38f
commit 46b0f9e6d6
2 changed files with 6 additions and 4 deletions

View File

@@ -16,6 +16,8 @@ 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.library :rails