diff options
author | stuconnolly <stuart02@gmail.com> | 2011-09-10 22:58:45 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-09-10 22:58:45 +0000 |
commit | e4dc361f7cd4b8a5062f58548427a5f542917a7f (patch) | |
tree | 5cc5ce6961a9990cf547ccf3ba869e8890192573 /UnitTests | |
parent | 1538a53adfea8d8238dd23d36c1207938b4d8439 (diff) | |
download | sequelpro-e4dc361f7cd4b8a5062f58548427a5f542917a7f.tar.gz sequelpro-e4dc361f7cd4b8a5062f58548427a5f542917a7f.tar.bz2 sequelpro-e4dc361f7cd4b8a5062f58548427a5f542917a7f.zip |
QueryKit additions.
Diffstat (limited to 'UnitTests')
-rw-r--r-- | UnitTests/QKSelectQueryTests.m | 6 |
1 files changed, 4 insertions, 2 deletions
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"); |