Permalink
Browse files

stubForIdReturnsId() -> valueForKeyImplementation()

  • Loading branch information...
1 parent 0475202 commit 9843bfab1c743111d4e56826823590a97081e6cd @eraserhd eraserhd committed Dec 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 Kiwi/KWMock.m
View
@@ -593,7 +593,7 @@ - (id)mutableCopy {
#pragma mark -
#pragma mark Key-Value Coding Support
-static id stubForIdReturnsId(id self, SEL _cmd, id key) {
+static id valueForKeyImplementation(id self, SEL _cmd, id key) {
KWMessagePattern *messagePattern = [KWMessagePattern messagePatternWithSelector:_cmd];
[self expectMessagePattern:messagePattern];
NSInvocation *invocation = [NSInvocation invocationWithTarget:self selector:_cmd messageArguments:&key];
@@ -608,11 +608,11 @@ static id stubForIdReturnsId(id self, SEL _cmd, id key) {
}
- (id)valueForKey:(NSString *)key {
- return stubForIdReturnsId(self, _cmd, key);
+ return valueForKeyImplementation(self, _cmd, key);
}
- (id)valueForKeyPath:(NSString *)keyPath {
- return stubForIdReturnsId(self, _cmd, keyPath);
+ return valueForKeyImplementation(self, _cmd, keyPath);
}
static void stubForIdIdReturnsVoid(id self, SEL _cmd, id a, id b) {

0 comments on commit 9843bfa

Please sign in to comment.