DEV: Leaking state in `PostActionNotifier` in tests.

Follow-up to 8a0478b97d
This commit is contained in:
Guo Xiang Tan 2020-08-31 12:04:17 +08:00
parent 31652c1ad3
commit a3b4882665
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 1 additions and 4 deletions

View File

@ -4,6 +4,7 @@ class PostActionNotifier
def self.disable
@disabled = true
@custom_post_revision_notifier_recipients = nil
end
def self.enable

View File

@ -108,10 +108,6 @@ describe PostActionNotifier do
end
end
after do
DiscoursePluginRegistry.reset!
end
it 'notifies the specified user of the revision' do
expect {
post.revise(evil_trout, raw: "world is the new body of the message")