From ee2438b0706101aaef83e441692c1c329c4e8467 Mon Sep 17 00:00:00 2001 From: Kyle Fuller Date: Mon, 7 Oct 2013 22:35:06 +0100 Subject: [PATCH] Fix a format string issues with the tests with missing argument --- Tests/Tests/AFHTTPSerializationTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Tests/AFHTTPSerializationTests.m b/Tests/Tests/AFHTTPSerializationTests.m index 29174eb..74ec97b 100644 --- a/Tests/Tests/AFHTTPSerializationTests.m +++ b/Tests/Tests/AFHTTPSerializationTests.m @@ -35,7 +35,7 @@ NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] initWithURL:self.baseURL statusCode:statusCode HTTPVersion:@"1.1" headerFields:@{@"Content-Type": @"text/html"}]; AFHTTPResponseSerializer *serializer = [AFHTTPResponseSerializer serializer]; - XCTAssert([serializer.acceptableStatusCodes containsIndex:statusCode], @"Status code %d should be acceptable"); + XCTAssert([serializer.acceptableStatusCodes containsIndex:statusCode], @"Status code %d should be acceptable", statusCode); NSError *error = nil; [serializer validateResponse:response data:[@"text" dataUsingEncoding:NSUTF8StringEncoding] error:&error]; @@ -50,7 +50,7 @@ NSHTTPURLResponse *response = [[NSHTTPURLResponse alloc] initWithURL:self.baseURL statusCode:statusCode HTTPVersion:@"1.1" headerFields:@{@"Content-Type": @"text/html"}]; AFHTTPResponseSerializer *serializer = [AFHTTPResponseSerializer serializer]; - XCTAssert(![serializer.acceptableStatusCodes containsIndex:statusCode], @"Status code %d should not be acceptable"); + XCTAssert(![serializer.acceptableStatusCodes containsIndex:statusCode], @"Status code %d should not be acceptable", statusCode); NSError *error = nil; [serializer validateResponse:response data:[@"text" dataUsingEncoding:NSUTF8StringEncoding] error:&error];