Skip to content
Snippets Groups Projects
Commit 0a62f4a6 authored by Stan Hu's avatar Stan Hu
Browse files

Merge branch 'mk-fix-ruby3-test-failure' into 'master'

Fix test that fails on Ruby 3

See merge request !103588



Merged-by: default avatarStan Hu <stanhu@gmail.com>
Approved-by: default avatarAleksei Lipniagov <alipniagov@gitlab.com>
Co-authored-by: Matthias Käppler's avatarMatthias Kaeppler <mkaeppler@gitlab.com>
parents 1922146a aea5f6a2
No related branches found
No related tags found
2 merge requests!103838Draft: Run test in MR with ce570f0 merging into fef465,!103588Fix test that fails on Ruby 3
Pipeline #691761438 passed
......@@ -14,15 +14,9 @@
end
it 'logs to /dev/null' do
logger = described_class::Controller.new.logger
expect(ActiveSupport::Logger).to receive(:new).with(File::NULL)
# Taken from ActiveSupport.logger_outputs_to?
# There is no equivalent /dev/null stream like STDOUT, so
# we need to extract the path.
logdev = logger.instance_variable_get(:@logdev)
logger_source = logdev.dev
expect(logger_source.path).to eq(File::NULL)
described_class::Controller.new.logger
end
describe '.call' do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment