iOS 我的那个 ios 帖子丢了,。。。。还是看看 oc 版本的 spec

shiren1118 · 2013年01月07日 · 最后由 shiren1118 回复于 2013年01月07日 · 3735 次阅读

我自己没有留一份。。。

#import "Specta.h"

实际代码

#import "MTLTestModel.h"

SpecBegin(MTLModel)

describe(@"subclass", ^{
    it(@"should not include dynamic readonly properties in +propertyKeys", ^{
        NSSet *expectedKeys = [NSSet setWithObjects:@"name", @"count", @"nestedName", nil];
        expect(MTLTestModel.propertyKeys).to.equal(expectedKeys);
    });
});

SpecEnd
需要 登录 后方可回复, 如果你还没有账号请 注册新账号