Load spec/env.test on application boot.

This commit is contained in:
Akinori MUSHA 2014-09-30 14:24:02 +09:00
parent 2f1ff3192c
commit f0086f0466
2 changed files with 2 additions and 4 deletions

View file

@ -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.

View file

@ -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'