summaryrefslogtreecommitdiff
path: root/qa/spec/resource/base_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'qa/spec/resource/base_spec.rb')
-rw-r--r--qa/spec/resource/base_spec.rb12
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