Read about our upcoming Code of Conduct on this issue

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 <>
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')
after(:all) do
ENV['CI'] = @old_env_ci if @old_env_ci
before do
stub_env('CI', false)
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