From e4dc361f7cd4b8a5062f58548427a5f542917a7f Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Sat, 10 Sep 2011 22:58:45 +0000 Subject: QueryKit additions. --- UnitTests/QKSelectQueryTests.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'UnitTests/QKSelectQueryTests.m') diff --git a/UnitTests/QKSelectQueryTests.m b/UnitTests/QKSelectQueryTests.m index f1329f46..36a5d6d2 100644 --- a/UnitTests/QKSelectQueryTests.m +++ b/UnitTests/QKSelectQueryTests.m @@ -33,6 +33,8 @@ static NSString *SPTestFieldTwo = @"test_field2"; static NSString *SPTestFieldThree = @"test_field3"; static NSString *SPTestFieldFour = @"test_field4"; +static NSString *SPTestParameterOne = @"10"; + @implementation QKSelectQueryTests #pragma mark - @@ -47,7 +49,7 @@ static NSString *SPTestFieldFour = @"test_field4"; [_query addField:SPTestFieldThree]; [_query addField:SPTestFieldFour]; - [_query addParameter:SPTestFieldOne operator:QKEqualityOperator value:@"10"]; + [_query addParameter:SPTestFieldOne operator:QKEqualityOperator value:SPTestParameterOne]; } -(void)tearDown @@ -66,7 +68,7 @@ static NSString *SPTestFieldFour = @"test_field4"; - (void)testSelectQueryFieldsAreCorrect { NSString *query = [NSString stringWithFormat:@"SELECT %@, %@, %@, %@", SPTestFieldOne, SPTestFieldTwo, SPTestFieldThree, SPTestFieldFour]; - + NSLog(@"%@", _query); STAssertTrue([[_query query] hasPrefix:query], @"query fields"); -- cgit v1.2.3