-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathORStackViewTests.m
More file actions
32 lines (26 loc) · 872 Bytes
/
ORStackViewTests.m
File metadata and controls
32 lines (26 loc) · 872 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
//
// OREmptyViewControllerTests.m
// ORStackViewExample
//
// Created by Daniel Doubrovkine on 6/6/14.
// Copyright (c) 2014 Orta. All rights reserved.
//
#import <ORStackView/ORStackView.h>
SpecBegin(ORStackView)
__block UIWindow *window;
beforeEach(^{
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
});
describe(@"bottomMarginHeight", ^{
it(@"works with an empty stack view", ^{
UIViewController *vc = [[UIViewController alloc] init];
window.rootViewController = vc;
ORStackView *view = [[ORStackView alloc] initWithFrame:vc.view.bounds];
view.lastMarginHeight = 10;
[vc.view addSubview:view];
[view setNeedsUpdateConstraints];
[window makeKeyAndVisible];
expect(window).will.haveValidSnapshotNamed(@"bottomMarginHeightWithEmptyStackView");
});
});
SpecEnd