Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Parse/Parse.m
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ + (void)initialize {
///--------------------------------------

+ (void)setApplicationId:(NSString *)applicationId clientKey:(NSString *)clientKey {
PFParameterAssert(clientKey.length, @"`clientKey` should not be nil.");
currentParseConfiguration_.applicationId = applicationId;
currentParseConfiguration_.clientKey = clientKey;
currentParseConfiguration_.server = [PFInternalUtils parseServerURLString]; // TODO: (nlutsenko) Clean this up after tests are updated.
Expand Down
5 changes: 1 addition & 4 deletions Tests/Unit/ParseSetupUnitTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ - (void)testInitializeWithNilApplicationIdShouldThrowException {
NSString *yolo = nil;
PFAssertThrowsInvalidArgumentException([Parse setApplicationId:yolo clientKey:yolo]);
PFAssertThrowsInvalidArgumentException([Parse setApplicationId:yolo clientKey:@"a"]);
}

- (void)testInitializeWithoutClientKeyNoThrow {
XCTAssertNoThrow([Parse setApplicationId:@"a" clientKey:nil]);
PFAssertThrowsInvalidArgumentException([Parse setApplicationId:@"a" clientKey:yolo]);
}

@end