FIX: Always return 0 for non-human user current DraftSequence.

This commit is contained in:
Guo Xiang Tan
2020-05-15 10:39:39 +08:00
parent 245e8212ca
commit 165fa13c9d
2 changed files with 2 additions and 2 deletions

View File

@ -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