何らかの理由で、私のテストは毎回合格しています。追加しても
fail(@"failed");
Xcodeはまだ「テストが成功しました」と言っています
何か案は?
私の仕様は次のようになります
#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