2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: when advancing draft sequence remove old drafts

This commit is contained in:
Sam Saffron 2015-06-02 13:32:25 +10:00
parent afafa30989
commit d459cb95dc
2 changed files with 2 additions and 0 deletions

View file

@ -42,6 +42,7 @@ describe Draft do
_t = Fabricate(:topic, user: u)
s = DraftSequence.current(u, Draft::NEW_TOPIC)
expect(Draft.get(u, Draft::NEW_TOPIC, s)).to eq nil
expect(Draft.count).to eq 0
end
it 'nukes new pm draft after a pm is created' do