For some reason my tests are passing every time. Even when I add
fail(@"failed"); Xcode still says "test succeeded"
Any ideas?
Heres what my spec looks like
#import "SDRViewController.h" #import <UIKit/UIKit.h> #import <Kiwi/Kiwi.h> SPEC_BEGIN(SDRViewControllerSpec) describe(@"SDRViewController", ^{ __block SDRViewController *viewController = [[SDRViewController alloc]init]; beforeAll(^{ [viewController setupCollectionView]; }); describe(@"viewController.collectionView", ^{ describe(@"collectionViewLayout", ^{ UICollectionViewFlowLayout *flowLayout = (UICollectionViewFlowLayout *)viewController.collectionView.collectionViewLayout; [[flowLayout shouldNot]beNil]; [[theValue(flowLayout.sectionInset) should]equal: theValue(UIEdgeInsetsZero)]; fail(@"failed"); }); }); }); SPEC_END
describemethod when Kiwi uses theitmethod for its test blocks. Could that be an issue?