mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Leaking state in PostActionNotifier
in tests.
Follow-up to 8a0478b97d
This commit is contained in:
parent
31652c1ad3
commit
a3b4882665
@ -4,6 +4,7 @@ class PostActionNotifier
|
|||||||
|
|
||||||
def self.disable
|
def self.disable
|
||||||
@disabled = true
|
@disabled = true
|
||||||
|
@custom_post_revision_notifier_recipients = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.enable
|
def self.enable
|
||||||
|
@ -108,10 +108,6 @@ describe PostActionNotifier do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
after do
|
|
||||||
DiscoursePluginRegistry.reset!
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'notifies the specified user of the revision' do
|
it 'notifies the specified user of the revision' do
|
||||||
expect {
|
expect {
|
||||||
post.revise(evil_trout, raw: "world is the new body of the message")
|
post.revise(evil_trout, raw: "world is the new body of the message")
|
||||||
|
Loading…
Reference in New Issue
Block a user