mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Load spec/env.test on application boot.
This commit is contained in:
parent
2f1ff3192c
commit
f0086f0466
2 changed files with 2 additions and 4 deletions
|
@ -4,6 +4,8 @@ require 'rails/all'
|
|||
|
||||
Bundler.require(:default, Rails.env)
|
||||
|
||||
Dotenv.overload File.expand_path('../../spec/env.test', __FILE__) if Rails.env.test?
|
||||
|
||||
module Huginn
|
||||
class Application < Rails::Application
|
||||
# Settings in config/environments/* take precedence over those specified here.
|
||||
|
|
|
@ -8,10 +8,6 @@ else
|
|||
Coveralls.wear!('rails')
|
||||
end
|
||||
|
||||
# Required ENV variables that are normally set in .env are setup here for the test environment.
|
||||
require 'dotenv'
|
||||
Dotenv.overload File.join(File.dirname(__FILE__), "env.test")
|
||||
|
||||
require File.expand_path("../../config/environment", __FILE__)
|
||||
require 'rspec/rails'
|
||||
require 'rspec/autorun'
|
||||
|
|
Loading…
Add table
Reference in a new issue