We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d9f530 commit cb0bc53Copy full SHA for cb0bc53
OctoKitTests/RACSignalAdditionsSpec.m
@@ -17,15 +17,21 @@
17
[[OCTResponse alloc] initWithHTTPURLResponse:nil parsedResult:@{ @"key": @"value2" }],
18
];
19
20
- RACSignal *signal = testValues.rac_sequence.signal;
+ RACSignal *signal = [testValues.rac_sequence.signal replayLazily];
21
22
+ __block NSUInteger count = 0;
23
[signal subscribeNext:^(id x) {
24
expect(x).to.beKindOf(OCTResponse.class);
25
+ count++;
26
}];
27
+ expect(count).will.equal(2);
28
29
+ count = 0;
30
[[signal oct_parsedResults] subscribeNext:^(id x) {
31
expect(x).to.beKindOf(NSDictionary.class);
32
33
34
35
});
36
37
SpecEnd
0 commit comments