One more fix in updateAttribute test with uniqueness validation
This commit is contained in:
parent
188d4c7b4f
commit
a770f20c08
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue