Commit 19e70e3f authored by Rémy Coutable's avatar Rémy Coutable Committed by Winnie Hellmann
Browse files

Stub ENV in the Gitaly task spec file


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 02f6647dee32
......@@ -43,15 +43,8 @@
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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment