diff --git a/test/validations_test.coffee b/test/validations_test.coffee index 22f158e0..2cbd062f 100644 --- a/test/validations_test.coffee +++ b/test/validations_test.coffee @@ -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