DEV: Leaking state in PostActionNotifier in tests take 2.

Follow-up to a3b48826
This commit is contained in:
Guo Xiang Tan
2020-08-31 12:55:42 +08:00
parent a3b4882665
commit 5270cd97ef
2 changed files with 9 additions and 1 deletions

View File

@@ -108,6 +108,10 @@ describe PostActionNotifier do
end
end
after do
PostActionNotifier.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")