aboutsummaryrefslogtreecommitdiffstats
path: root/UnitTests/QKSelectQueryTests.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-09-18 09:42:58 +0000
committerstuconnolly <stuart02@gmail.com>2011-09-18 09:42:58 +0000
commit6278cbbf9d76d69f44d1d7ddf34792b9e0310272 (patch)
treeede7b455a3af51427f38a32b7909747275dbe8ae /UnitTests/QKSelectQueryTests.m
parent23e768b9eaa8a915bd95c135d344ecde6b07695a (diff)
downloadsequelpro-6278cbbf9d76d69f44d1d7ddf34792b9e0310272.tar.gz
sequelpro-6278cbbf9d76d69f44d1d7ddf34792b9e0310272.tar.bz2
sequelpro-6278cbbf9d76d69f44d1d7ddf34792b9e0310272.zip
Fix test suite crashing.
Diffstat (limited to 'UnitTests/QKSelectQueryTests.m')
-rw-r--r--UnitTests/QKSelectQueryTests.m9
1 files changed, 1 insertions, 8 deletions
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");
}