diff options
Diffstat (limited to 'Frameworks/QueryKit')
-rw-r--r-- | Frameworks/QueryKit/Tests/QKUpdateQueryTests.m | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Frameworks/QueryKit/Tests/QKUpdateQueryTests.m b/Frameworks/QueryKit/Tests/QKUpdateQueryTests.m index cd1fb848..b1f90e10 100644 --- a/Frameworks/QueryKit/Tests/QKUpdateQueryTests.m +++ b/Frameworks/QueryKit/Tests/QKUpdateQueryTests.m @@ -68,18 +68,14 @@ [_query setUseQuotedIdentifiers:NO]; NSString *query = [NSString stringWithFormat:@"UPDATE %@ SET %@ = '%@', %@ = '%@'", QKTestTableName, QKTestFieldOne, QKTestUpdateValueOne, QKTestFieldTwo, QKTestUpdateValueTwo]; - - NSLog(@"%@", [_query query]); - + STAssertTrue([[_query query] hasPrefix:query], @"update query fields without quotes"); } - (void)testUpdateQueryConstraintIsCorrect { NSString *query = [NSString stringWithFormat:@"WHERE `%@` %@ %@", QKTestFieldOne, [QKQueryUtilities stringRepresentationOfQueryOperator:QKEqualityOperator], [NSNumber numberWithUnsignedInteger:QKTestParameterOne]]; - - NSLog(@"%@", [_query query]); - + STAssertTrue(([[_query query] rangeOfString:query].location != NSNotFound), @"update query constraint"); } |