Update validations test
This commit is contained in:
parent
0f592d4bf5
commit
3919630d9a
|
@ -101,9 +101,8 @@ it 'should validate uniqueness', (test) ->
|
|||
dmk.isValid (valid) ->
|
||||
test.ok valid
|
||||
dmk.save ->
|
||||
dmk.city = 'Bangkok, Don Muang'
|
||||
dmk.isValid (valid) ->
|
||||
test.ok valid
|
||||
dmk.updateAttributes city: 'Bangkok, Don Muang', (err) ->
|
||||
test.ok !err
|
||||
dmk.save ->
|
||||
dmk.code = 'BKK'
|
||||
dmk.isValid (valid) ->
|
||||
|
|
Loading…
Reference in New Issue