Skip to content

Commit

Permalink
Fixed several typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nickynick committed Jan 23, 2014
1 parent 56123cb commit 71e76b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ReactiveCoreData/RACSignal+ReactiveCoreData.m
Expand Up @@ -49,7 +49,7 @@ - (RACSignal *)count;
- (RACSignal *)where:(id)predicateOrSignal;
{
RACSignal *predicateSignal = [self rcd_convertToSignal:predicateOrSignal];
return [[[self combineLatestWith:predicateOrSignal]
return [[[self combineLatestWith:predicateSignal]
reduceEach:^(NSFetchRequest *request, NSPredicate *predicate) {
request.predicate = predicate;
return request;
Expand Down Expand Up @@ -229,7 +229,7 @@ - (NSArray *)rcd_convertToSignals:(NSArray *)args;
{
NSMutableArray *signals = [NSMutableArray arrayWithCapacity:[args count]];
for (id arg in args) {
[signals addObject:[self convertToSignal:arg]];
[signals addObject:[self rcd_convertToSignal:arg]];
}
return [signals copy];
}
Expand Down
8 changes: 4 additions & 4 deletions ReactiveCoreDataTests/RACManagedObjectFetchSpecs.m
Expand Up @@ -172,7 +172,7 @@
});

it(@"updates fetch request with a constant predicate", ^{
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name == Jane"];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name == 'Jane'"];
NSArray *result = [[[[Parent findAll] where:predicate] fetch] first];
expect(result).to.equal(@[ Jane ]);
});
Expand All @@ -185,11 +185,11 @@
final_result = x;
}];

[predicateSignal sendNext:[NSPredicate predicateWithFormat:@"name == Jane"]];
[predicateSignal sendNext:[NSPredicate predicateWithFormat:@"name == Joe"]];
[predicateSignal sendNext:[NSPredicate predicateWithFormat:@"name == 'Jane'"]];
[predicateSignal sendNext:[NSPredicate predicateWithFormat:@"name == 'Joe'"]];
[predicateSignal sendCompleted];

expect(final_result).to.equal(@[ @[ Jane ], @[ Joe ] ]);
expect(final_result).to.equal((@[ @[ Jane ], @[ Joe ] ]));
});

it(@"where for property constant value", ^{
Expand Down

0 comments on commit 71e76b2

Please sign in to comment.