mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop TrackingLogger for FakeLogger (#16642)
This commit is contained in:
@@ -85,10 +85,10 @@ describe UserDestroyer do
|
||||
|
||||
context 'context is missing' do
|
||||
it "logs warning message if context is missing" do
|
||||
messages = track_log_messages(level: Logger::WARN) do
|
||||
logger = track_log_messages do
|
||||
UserDestroyer.new(admin).destroy(user)
|
||||
end
|
||||
expect(messages[0][2]).to include("User destroyed without context from:")
|
||||
expect(logger.warnings).to include(/User destroyed without context from:/)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user