From a770f20c082419a40c25b48fc17ab47ba00da0f3 Mon Sep 17 00:00:00 2001 From: 1602 Date: Tue, 22 Jan 2013 03:54:06 +0700 Subject: [PATCH] One more fix in updateAttribute test with uniqueness validation --- test/validations_test.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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