From b68a5296550fcb719382909d5960f8b59c8eeb8a Mon Sep 17 00:00:00 2001 From: Tom Kemp Date: Tue, 14 Jan 2020 13:39:03 +0000 Subject: [PATCH] Replace Kiwi assertions with XCTest assertions --- Unit Tests/PTURLRequestOperationSpec.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Unit Tests/PTURLRequestOperationSpec.m b/Unit Tests/PTURLRequestOperationSpec.m index 63665d29..2f154da6 100644 --- a/Unit Tests/PTURLRequestOperationSpec.m +++ b/Unit Tests/PTURLRequestOperationSpec.m @@ -26,8 +26,8 @@ - (void)setUp NSURLRequest *request = [NSURLRequest requestWithURL:authURL]; self.subject = [[PTURLRequestOperation alloc] initWithURLRequest:request]; [self.subject start]; - [[self.subject.URLSession shouldNot] beNil]; - [[(NSObject *)self.subject.URLSession.delegate shouldNot] beNil]; + XCTAssertNotNil(self.subject.URLSession); + XCTAssertNotNil(self.subject.URLSession.delegate); self.sessionDelegate = self.subject.URLSession.delegate; self.session = self.subject.URLSession; } @@ -40,8 +40,8 @@ - (void)testFinishShouldInvalidateTheSessionDestroyingTheSessionDelegateOnDeallo [[NSRunLoop mainRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:1]]; - [[self.session should] beNil]; - [[(NSObject *)self.sessionDelegate should] beNil]; + XCTAssertNil(self.session); + XCTAssertNil(self.sessionDelegate); } @end