forked from sticksen/STKWebKitViewController
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTests.m
More file actions
43 lines (32 loc) · 814 Bytes
/
Tests.m
File metadata and controls
43 lines (32 loc) · 814 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
//
// STKWebKitViewControllerTests.m
// STKWebKitViewControllerTests
//
// Created by Marc on 09/04/2014.
// Copyright (c) 2014 Marc. All rights reserved.
//
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 and fail", ^AsyncBlock {
});
});
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", ^AsyncBlock {
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW, 0), ^{
done();
});
});
});
SpecEnd