Skip to content

Commit

Permalink
Merge pull request flutter#140 from patrickhartling/invocation_with_c…
Browse files Browse the repository at this point in the history
…lass_objects

Handle invocation arguments of type Class
  • Loading branch information
erikdoe committed Aug 23, 2014
2 parents 8d323b3 + 52b0233 commit 70567a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/OCMock/OCMFunctions.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ BOOL OCMIsObjectType(const char *objCType)
{
objCType = OCMTypeWithoutQualifiers(objCType);

if(strcmp(objCType, @encode(id)) == 0)
if(strcmp(objCType, @encode(id)) == 0 || strcmp(objCType, @encode(Class)) == 0)
return YES;

// if the returnType is a typedef to an object, it has the form ^{OriginClass=#}
Expand Down

0 comments on commit 70567a7

Please sign in to comment.