mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 04:31:43 +08:00
DEV: Prevent extraneous log message in specs (#15504)
Yo dawg, I put `silence_stdout` in your `silence_stdout` so you can still write to stdout? 🤔
This commit is contained in:
parent
910796c4b4
commit
19fcb0b5ea
|
@ -41,7 +41,7 @@ describe BackupRestore::Backuper do
|
|||
SiteSetting.max_post_length = 250
|
||||
|
||||
silence_stdout do
|
||||
backuper = silence_stdout { BackupRestore::Backuper.new(Discourse.system_user.id) }
|
||||
backuper = BackupRestore::Backuper.new(Discourse.system_user.id)
|
||||
|
||||
expect { backuper.send(:notify_user) }
|
||||
.to change { Topic.private_messages.count }.by(1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user