Fix unit tests.
This commit is contained in:
@@ -670,7 +670,7 @@ ret =
|
||||
})),
|
||||
ENTRY(ORKVerificationStep,
|
||||
^id(NSDictionary *dict, ORKESerializationPropertyGetter getter) {
|
||||
return [[ORKVerificationStep alloc] initWithIdentifier:GETPROP(dict, identifier) title:GETPROP(dict, title) text:GETPROP(dict, text) verificationViewControllerClass:NSClassFromString(GETPROP(dict, verificationViewControllerString))];
|
||||
return [[ORKVerificationStep alloc] initWithIdentifier:GETPROP(dict, identifier) text:GETPROP(dict, text) verificationViewControllerClass:NSClassFromString(GETPROP(dict, verificationViewControllerString))];
|
||||
},
|
||||
(@{
|
||||
PROPERTY(verificationViewControllerString, NSString, NSObject, NO, nil, nil)
|
||||
|
||||
@@ -494,7 +494,7 @@ ORK_MAKE_TEST_INIT(ORKLocation, (^{
|
||||
// Serialize again, the output ought to be equal
|
||||
NSDictionary *dictionary2 = [ORKESerializer JSONObjectForObject:instance2 error:NULL];
|
||||
BOOL isMatch = [mockDictionary isEqualToDictionary:dictionary2];
|
||||
if (! isMatch)
|
||||
if (!isMatch)
|
||||
{
|
||||
XCTAssertTrue(isMatch, @"Should be equal for class: %@", NSStringFromClass(aClass));
|
||||
}
|
||||
@@ -699,7 +699,8 @@ ORK_MAKE_TEST_INIT(ORKLocation, (^{
|
||||
|
||||
- (void)testEquality {
|
||||
NSArray *classesExcluded = @[]; // classes not intended to be serialized standalone
|
||||
NSMutableArray *stringsForClassesExcluded = [NSMutableArray array];
|
||||
// Each time ORKRegistrationStep returns a new date in its answer fromat, cannot be tested.
|
||||
NSMutableArray *stringsForClassesExcluded = [NSMutableArray arrayWithObjects:NSStringFromClass([ORKRegistrationStep class]), nil];
|
||||
for (Class c in classesExcluded) {
|
||||
[stringsForClassesExcluded addObject:NSStringFromClass(c)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user