mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 12:27:16 +08:00
FIX: Always return 0 for non-human user current DraftSequence.
This commit is contained in:
@ -24,7 +24,7 @@ describe DraftSequence do
|
||||
|
||||
it 'should return nil for non-human user' do
|
||||
user.id = -99999
|
||||
expect(DraftSequence.current(user, 'test')).to eq(nil)
|
||||
expect(DraftSequence.current(user, 'test')).to eq(0)
|
||||
end
|
||||
|
||||
it 'should return the right sequence' do
|
||||
|
Reference in New Issue
Block a user