Created
July 25, 2017 20:54
-
-
Save olbrichj/02ee2a3802bea4a8a2844c2b5ba0b494 to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
#import <SomeClass.h> | |
SPEC_BEGIN(SomeClass) | |
describe(@"The SomeClass", ^{ | |
__block Someclass *sut; | |
beforeAll(^{ | |
//Nothing to do here | |
}); | |
context(@"After initialization", ^{ | |
beforeEach(^{ | |
//set up a fresh class | |
sut = [[SomeClass alloc] init]; | |
}); | |
it(@"should exist", ^{ | |
//make sure it exist, because maybe someone disconnected an outlet (we all did it;)) | |
[[sut shouldNot] beNil]; | |
}); | |
afterEach(^{ | |
//specific tear down is due to ARC only necessary when something is executed | |
//and you don't know if it is still running | |
testClass = nil; | |
}); | |
afterAll(^{ | |
//Nothing to do here | |
}); | |
}); | |
}); | |
SPEC_END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment