File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -107,10 +107,15 @@ + (void)configure:(Configuration *)configuration {
107
107
});
108
108
109
109
qck_it (@" should archive" , ^{
110
- NSData *data = [NSKeyedArchiver archivedDataWithRootObject: sequence];
110
+ NSError *error;
111
+ NSData *data = [NSKeyedArchiver archivedDataWithRootObject: sequence requiringSecureCoding: NO error: &error];
111
112
expect (data).notTo (beNil ());
112
113
113
- RACSequence *unarchived = [NSKeyedUnarchiver unarchiveObjectWithData: data];
114
+ NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc ] initForReadingFromData: data error: &error];
115
+ expect (error).to (beNil ());
116
+
117
+ unarchiver.requiresSecureCoding = NO ;
118
+ RACSequence *unarchived = [unarchiver decodeObjectForKey: NSKeyedArchiveRootObjectKey ];
114
119
expect (unarchived).to (equal (sequence));
115
120
});
116
121
You can’t perform that action at this time.
0 commit comments