describe(@"spying on a class", ^{
it(@"is supported", ^{
id junk = [[NSObject alloc] init];
spy_on([UIApplication class]);
[UIApplication class] stub_method(@selector(sharedApplication)).and_return(junk);
[UIApplication sharedApplication] should be_same_instance_as(junk);
});
});
Is it possible to mock class methods while using Cedar?I couldn't find any examples in the wiki
--
You received this message because you are subscribed to the Google Groups "Cedar Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cedar-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.