Skip to content
Browse files

stubForIdIdReturnsVoid() -> setValueForKeyImplementation()

  • Loading branch information...
1 parent 9843bfa commit 7ef32324abe10998bb28d297ef755cad10439e61 @eraserhd eraserhd committed Dec 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Kiwi/KWMock.m
View
6 Kiwi/KWMock.m
@@ -615,7 +615,7 @@ - (id)valueForKeyPath:(NSString *)keyPath {
return valueForKeyImplementation(self, _cmd, keyPath);
}
-static void stubForIdIdReturnsVoid(id self, SEL _cmd, id a, id b) {
+static void setValueForKeyImplementation(id self, SEL _cmd, id a, id b) {
KWMessagePattern *messagePattern = [KWMessagePattern messagePatternWithSelector:_cmd];
[self expectMessagePattern:messagePattern];
NSInvocation *invocation = [NSInvocation invocationWithTarget:self selector:_cmd messageArguments:&a, &b];
@@ -624,11 +624,11 @@ static void stubForIdIdReturnsVoid(id self, SEL _cmd, id a, id b) {
}
- (void)setValue:(id)value forKey:(NSString *)key {
- stubForIdIdReturnsVoid(self, _cmd, value, key);
+ setValueForKeyImplementation(self, _cmd, value, key);
}
- (void)setValue:(id)value forKeyPath:(NSString *)keyPath {
- stubForIdIdReturnsVoid(self, _cmd, value, keyPath);
+ setValueForKeyImplementation(self, _cmd, value, keyPath);
}
@end

0 comments on commit 7ef3232

Please sign in to comment.
Something went wrong with that request. Please try again.