Commit f9fea6ae authored by Stan Hu's avatar Stan Hu

Improve and fix spec in ee/spec/lib/gitlab/geo/logger_spec.rb

parent 659fc515
......@@ -3,8 +3,9 @@ require 'spec_helper'
describe Gitlab::Geo::Logger do
it 'uses the same log_level defined in Rails' do
allow(Rails.logger).to receive(:level) { 99 }
expect_any_instance_of(::Gitlab::Geo::Logger).to receive(:level=).with(99)
described_class.build
logger = described_class.build
expect(logger.level).to eq(99)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment