diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 11:10:13 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 11:10:13 +0000 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /qa/spec/resource/base_spec.rb | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) | |
download | gitlab-ce-0ea3fcec397b69815975647f5e2aa5fe944a8486.tar.gz |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'qa/spec/resource/base_spec.rb')
-rw-r--r-- | qa/spec/resource/base_spec.rb | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/qa/spec/resource/base_spec.rb b/qa/spec/resource/base_spec.rb index 6dac8e0e3ee..f23f4aa728b 100644 --- a/qa/spec/resource/base_spec.rb +++ b/qa/spec/resource/base_spec.rb @@ -112,18 +112,16 @@ RSpec.describe QA::Resource::Base do let(:method) { 'api' } before do - allow(QA::Runtime::Logger).to receive(:debug) + allow(QA::Runtime::Logger).to receive(:info) 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 - stub_env('QA_DEBUG', 'true') - subject.fabricate_via_api!('something', resource: resource, parents: []) - expect(QA::Runtime::Logger).to have_received(:debug) do |&msg| + expect(QA::Runtime::Logger).to have_received(:info) do |&msg| expect(msg.call).to match_regex(log_regex) end end @@ -155,15 +153,13 @@ RSpec.describe QA::Resource::Base do let(:method) { 'browser_ui' } before do - allow(QA::Runtime::Logger).to receive(:debug) + allow(QA::Runtime::Logger).to receive(:info) end it 'logs the resource and build method' do - stub_env('QA_DEBUG', 'true') - subject.fabricate_via_browser_ui!('something', resource: resource, parents: []) - expect(QA::Runtime::Logger).to have_received(:debug) do |&msg| + expect(QA::Runtime::Logger).to have_received(:info) do |&msg| expect(msg.call).to match_regex(log_regex) end end |