Skip to content

Instantly share code, notes, and snippets.

@keokilee
Created October 14, 2014 02:50
Show Gist options
  • Save keokilee/2934f235c0a6cd8ae3a4 to your computer and use it in GitHub Desktop.
Save keokilee/2934f235c0a6cd8ae3a4 to your computer and use it in GitHub Desktop.
Kiwi Basic Spec
#import <Kiwi/Kiwi.h>
#import “ViewController.h”
SPEC_BEGIN(ViewControllerSpec)
describe(@”ViewController”, ^{
let(controller, ^{return [[ViewController alloc] init];});
beforeEach(^{
[controller viewDidLoad];
);
it(@”initializes an empty list of incidents”, ^{
[[[controller incidents] should] beEmpty];
});
});
SPEC_END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment