From 6278cbbf9d76d69f44d1d7ddf34792b9e0310272 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sun, 18 Sep 2011 09:42:58 +0000 Subject: Fix test suite crashing. --- UnitTests/QKSelectQueryTests.m | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'UnitTests') diff --git a/UnitTests/QKSelectQueryTests.m b/UnitTests/QKSelectQueryTests.m index 36a5d6d2..98a67ab6 100644 --- a/UnitTests/QKSelectQueryTests.m +++ b/UnitTests/QKSelectQueryTests.m @@ -52,11 +52,6 @@ static NSString *SPTestParameterOne = @"10"; [_query addParameter:SPTestFieldOne operator:QKEqualityOperator value:SPTestParameterOne]; } --(void)tearDown -{ - if (_query) [_query release], _query = nil; -} - #pragma mark - #pragma mark Tests @@ -68,9 +63,7 @@ static NSString *SPTestParameterOne = @"10"; - (void)testSelectQueryFieldsAreCorrect { NSString *query = [NSString stringWithFormat:@"SELECT %@, %@, %@, %@", SPTestFieldOne, SPTestFieldTwo, SPTestFieldThree, SPTestFieldFour]; - - NSLog(@"%@", _query); - + STAssertTrue([[_query query] hasPrefix:query], @"query fields"); } -- cgit v1.2.3