Skip to content

Commit

Permalink
Merge pull request #273 from pusher/fix-broken-tests
Browse files Browse the repository at this point in the history
Replace Kiwi assertions with XCTest assertions
TomKemp authored Jan 14, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents be32283 + b68a529 commit a2b8b8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Unit Tests/PTURLRequestOperationSpec.m
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a2b8b8e

Please sign in to comment.