Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/spec/git/repository_spec.rb')
-rw-r--r--qa/spec/git/repository_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/spec/git/repository_spec.rb b/qa/spec/git/repository_spec.rb
index a6a49f5907a..1b88cba2ba5 100644
--- a/qa/spec/git/repository_spec.rb
+++ b/qa/spec/git/repository_spec.rb
@@ -4,6 +4,7 @@ RSpec.describe QA::Git::Repository do
include QA::Support::Helpers::StubEnv
shared_context 'unresolvable git directory' do
+ let(:logger) { instance_double(Logger, info: nil, debug: nil) }
let(:repo_uri) { 'http://foo/bar.git' }
let(:repo_uri_with_credentials) { 'http://root@foo/bar.git' }
let(:env_vars) { [%q{HOME="temp"}] }
@@ -22,6 +23,7 @@ RSpec.describe QA::Git::Repository do
before do
stub_env('GITLAB_USERNAME', 'root')
allow(repository).to receive(:tmp_home_dir).and_return(tmp_netrc_dir)
+ allow(QA::Runtime::Logger).to receive(:logger).and_return(logger)
end
around do |example|