Update validations test

This commit is contained in:
Anatoliy Chakkaev 2013-01-22 03:48:12 +07:00
parent 0f592d4bf5
commit 3919630d9a
1 changed files with 9 additions and 10 deletions

View File

@ -101,9 +101,8 @@ it 'should validate uniqueness', (test) ->
dmk.isValid (valid) -> dmk.isValid (valid) ->
test.ok valid test.ok valid
dmk.save -> dmk.save ->
dmk.city = 'Bangkok, Don Muang' dmk.updateAttributes city: 'Bangkok, Don Muang', (err) ->
dmk.isValid (valid) -> test.ok !err
test.ok valid
dmk.save -> dmk.save ->
dmk.code = 'BKK' dmk.code = 'BKK'
dmk.isValid (valid) -> dmk.isValid (valid) ->