aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-07-15 10:37:25 +0000
committerstuconnolly <stuart02@gmail.com>2012-07-15 10:37:25 +0000
commitc5133a64a535bccfa2c0ad333e56c8a3b02a01dc (patch)
treec8a56322eeabb057a9eb34523737f4ed3a37654d
parentcb00d18102f8c3f88e8a15bb4d9fb7825cf29a59 (diff)
downloadsequelpro-c5133a64a535bccfa2c0ad333e56c8a3b02a01dc.tar.gz
sequelpro-c5133a64a535bccfa2c0ad333e56c8a3b02a01dc.tar.bz2
sequelpro-c5133a64a535bccfa2c0ad333e56c8a3b02a01dc.zip
Remove test output.
-rw-r--r--Frameworks/QueryKit/Tests/QKUpdateQueryTests.m8
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");
}