mirror of
https://github.com/zhigang1992/ReactiveViewModel.git
synced 2026-01-12 22:51:31 +08:00
Update RVMViewModelSpec
This commit is contained in:
@@ -97,12 +97,7 @@ describe(@"active property", ^{
|
||||
it(@"should forward a signal", ^{
|
||||
@autoreleasepool {
|
||||
RVMTestViewModel *viewModel __attribute__((objc_precise_lifetime)) = createViewModel();
|
||||
|
||||
RACSignal *input = [RACSignal createSignal:^ id (id<RACSubscriber> subscriber) {
|
||||
[subscriber sendNext:@1];
|
||||
[subscriber sendNext:@2];
|
||||
return nil;
|
||||
}];
|
||||
RACSignal *input = @[ @1, @2 ].rac_signal;
|
||||
|
||||
[[viewModel
|
||||
forwardSignalWhileActive:input]
|
||||
|
||||
Reference in New Issue
Block a user