This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Kiwi.h" | |
static NSTimeInterval const kAsynchronousTestingTimeout = 2.0; | |
SPEC_BEGIN(KlassSpec) | |
describe(@"An object", ^{ | |
context(@"when...", ^{ | |
__block Klass *object = nil; | |
beforeAll(^{ // or 'beforeEach', depending on your needs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void * const kKVOContext = (void *)&kKVOContext; | |
@implementation Class | |
- (void)someMethod { | |
[super someMethod]; | |
[observedObject addObserver:self | |
forKeyPath:@"keyPath" | |
options:NSKeyValueObservingOptionInitial | |
context:kKVOContext]; |
NewerOlder