-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTests.m
More file actions
48 lines (35 loc) · 852 Bytes
/
Copy pathTests.m
File metadata and controls
48 lines (35 loc) · 852 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// CacheCustomTests.m
// CacheCustomTests
//
// Created by HorrorProgramer on 04/09/2018.
// Copyright (c) 2018 HorrorProgramer. All rights reserved.
//
// https://github.com/Specta/Specta
SpecBegin(InitialSpecs)
describe(@"these will fail", ^{
it(@"can do maths", ^{
expect(1).to.equal(2);
});
it(@"can read", ^{
expect(@"number").to.equal(@"string");
});
it(@"will wait for 10 seconds and fail", ^{
waitUntil(^(DoneCallback done) {
});
});
});
describe(@"these will pass", ^{
it(@"can do maths", ^{
expect(1).beLessThan(23);
});
it(@"can read", ^{
expect(@"team").toNot.contain(@"I");
});
it(@"will wait and succeed", ^{
waitUntil(^(DoneCallback done) {
done();
});
});
});
SpecEnd