diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-20 13:00:54 +0300 |
commit | 3cccd102ba543e02725d247893729e5c73b38295 (patch) | |
tree | f36a04ec38517f5deaaacb5acc7d949688d1e187 /qa/spec/resource/base_spec.rb | |
parent | 205943281328046ef7b4528031b90fbda70c75ac (diff) |
Add latest changes from gitlab-org/gitlab@14-10-stable-eev14.10.0-rc42
Diffstat (limited to 'qa/spec/resource/base_spec.rb')
-rw-r--r-- | qa/spec/resource/base_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qa/spec/resource/base_spec.rb b/qa/spec/resource/base_spec.rb index eab205ec5d1..6dac8e0e3ee 100644 --- a/qa/spec/resource/base_spec.rb +++ b/qa/spec/resource/base_spec.rb @@ -4,6 +4,7 @@ RSpec.describe QA::Resource::Base do include QA::Support::Helpers::StubEnv let(:resource) { spy('resource') } + let(:api_client) { instance_double('Runtime::API::Client') } let(:location) { 'http://location' } let(:log_regex) { %r{==> Built a MyResource with username 'qa' via #{method} in [\d.\-e]+ seconds+} } @@ -114,6 +115,7 @@ RSpec.describe QA::Resource::Base do allow(QA::Runtime::Logger).to receive(:debug) allow(resource).to receive(:api_support?).and_return(true) allow(resource).to receive(:fabricate_via_api!) + allow(resource).to receive(:api_client) { api_client } end it 'logs the resource and build method' do @@ -154,7 +156,6 @@ RSpec.describe QA::Resource::Base do before do allow(QA::Runtime::Logger).to receive(:debug) - # allow(resource).to receive(:fabricate!) end it 'logs the resource and build method' do |