Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement