mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
add another test
This commit is contained in:
parent
0fd1974838
commit
40882a9576
@ -37,6 +37,11 @@ describe Draft do
|
|||||||
it 'can cleanup old' do
|
it 'can cleanup old' do
|
||||||
user = Fabricate(:user)
|
user = Fabricate(:user)
|
||||||
key = Draft::NEW_TOPIC
|
key = Draft::NEW_TOPIC
|
||||||
|
|
||||||
|
Draft.set(user,key,0,'draft')
|
||||||
|
Draft.cleanup!
|
||||||
|
expect(Draft.count).to eq 1
|
||||||
|
|
||||||
seq = DraftSequence.next!(user, key)
|
seq = DraftSequence.next!(user, key)
|
||||||
|
|
||||||
Draft.set(user,key,seq,'draft')
|
Draft.set(user,key,seq,'draft')
|
||||||
|
Loading…
Reference in New Issue
Block a user