Well I figured this out :) Here's the answer:
[[[_mockAuthenticationRepository stub] andDo:^(NSInvocation *invocation) {
void (^successBlock)(GNCustomer *customer, NSError *error) = nil;
[invocation getArgument:&successBlock atIndex:4];
NSDictionary *details = @{ NSLocalizedDescriptionKey : [OCMArg any] };
NSError *error = [NSError errorWithDomain:@"Some Domain" code:401 userInfo:details];
successBlock(nil, error);
}] signInWithEmail:[OCMArg any] andWithPassword:[OCMArg any] andWithBlock:[OCMArg any]];