One more fix in updateAttribute test with uniqueness validation

This commit is contained in:
1602 2013-01-22 03:54:06 +07:00
parent 188d4c7b4f
commit a770f20c08
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ it 'should validate uniqueness', (test) ->
bkk = new Airport code: 'BKK', city: 'Bangkok'
bkk.isValid (valid) ->
test.ok valid
bkk.save ->
bkk.updateAttribute 'code', 'BKK', ->
dmk = new Airport code: 'DMK', city: 'Bangkok'
dmk.isValid (valid) ->
test.ok valid