summaryrefslogtreecommitdiff
path: root/spec/config
diff options
context:
space:
mode:
Diffstat (limited to 'spec/config')
-rw-r--r--spec/config/mail_room_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/config/mail_room_spec.rb b/spec/config/mail_room_spec.rb
index d2409a56a49..092048a6259 100644
--- a/spec/config/mail_room_spec.rb
+++ b/spec/config/mail_room_spec.rb
@@ -1,6 +1,8 @@
require 'spec_helper'
describe 'mail_room.yml' do
+ include StubENV
+
let(:mailroom_config_path) { 'config/mail_room.yml' }
let(:gitlab_config_path) { 'config/mail_room.yml' }
let(:redis_config_path) { 'config/resque.yml' }
@@ -19,12 +21,11 @@ describe 'mail_room.yml' do
end
before(:each) do
- ENV['GITLAB_REDIS_CONFIG_FILE'] = absolute_path(redis_config_path)
+ stub_env('GITLAB_REDIS_CONFIG_FILE', absolute_path(redis_config_path))
clear_redis_raw_config
end
after(:each) do
- ENV['GITLAB_REDIS_CONFIG_FILE'] = nil
clear_redis_raw_config
end