I am using KIWI for testing my iOS app. I would like to ask how to check if element exists in UIViewController, however, I declared the element inside the implementation file and not in header file.
Is that possible?
#import "Kiwi.h"
SPEC_BEGIN(HomeViewController)
describe(@"HomeViewController", ^{
context(@"when instantiated", ^{
__block HomeViewController *controller = nil;
beforeEach(^{
controller = [[HomeViewController alloc] init];
});
it(@"it should have been instantiated", ^{
[controller shouldNotBeNil];
});
it(@"it should have UITableViewController", ^{
/*
WHAT TO DO HERE
*/
})
});
});
SPEC_END