diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2018-10-25 18:49:33 +0300 |
---|---|---|
committer | Mark Lapierre <mlapierre@gitlab.com> | 2018-10-25 22:21:21 +0300 |
commit | a85c8e346f0844b0bc8079e03f942f4c53776efa (patch) | |
tree | f5a51384510376ebcf5ea37f1b451a1022b702a1 /qa/spec/page | |
parent | 4de9004175e7c1dfd0366c41d70573d4d686b292 (diff) |
Re-enable debug logging of Git commands and output
Diffstat (limited to 'qa/spec/page')
-rw-r--r-- | qa/spec/page/logging_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/spec/page/logging_spec.rb b/qa/spec/page/logging_spec.rb index 9f17de4edbf..9d56353062b 100644 --- a/qa/spec/page/logging_spec.rb +++ b/qa/spec/page/logging_spec.rb @@ -3,9 +3,15 @@ require 'capybara/dsl' describe QA::Support::Page::Logging do + include Support::StubENV + let(:page) { double().as_null_object } before do + logger = Logger.new $stdout + logger.level = ::Logger::DEBUG + QA::Runtime::Logger.logger = logger + allow(Capybara).to receive(:current_session).and_return(page) allow(page).to receive(:current_url).and_return('http://current-url') allow(page).to receive(:has_css?).with(any_args).and_return(true) |