diff options
author | Rémy Coutable <remy@rymai.me> | 2017-10-10 17:25:05 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-10-18 18:42:09 +0200 |
commit | 91553ae83363c2a862d4e606599a613b6fa7e224 (patch) | |
tree | f8a17abdde811fc1a9b7e7dce08bf9ff970f28ea /spec/tasks | |
parent | 8b8bab118e803fd17a93df09d46545b6a2b46786 (diff) | |
download | gitlab-ce-91553ae83363c2a862d4e606599a613b6fa7e224.tar.gz |
Stub ENV in the Gitaly task spec file
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/tasks')
-rw-r--r-- | spec/tasks/gitlab/gitaly_rake_spec.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/tasks/gitlab/gitaly_rake_spec.rb b/spec/tasks/gitlab/gitaly_rake_spec.rb index 1e9b20435ec..5dd8fe8eaa5 100644 --- a/spec/tasks/gitlab/gitaly_rake_spec.rb +++ b/spec/tasks/gitlab/gitaly_rake_spec.rb @@ -43,15 +43,8 @@ describe 'gitlab:gitaly namespace rake task' do describe 'gmake/make' do let(:command_preamble) { %w[/usr/bin/env -u RUBYOPT -u BUNDLE_GEMFILE] } - before(:all) do - @old_env_ci = ENV.delete('CI') - end - - after(:all) do - ENV['CI'] = @old_env_ci if @old_env_ci - end - before do + stub_env('CI', false) FileUtils.mkdir_p(clone_path) expect(Dir).to receive(:chdir).with(clone_path).and_call_original allow(Bundler).to receive(:bundle_path).and_return('/fake/bundle_path') |