Permalink
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 646 Bytes
//
// ORFourthViewControllerTests.m
// ORStackViewExample
//
// Created by Daniel Doubrovkine on 6/6/14.
// Copyright (c) 2014 Orta. All rights reserved.
//
#import "../ORStackViewExample/ORFourthViewController.h"
SpecBegin(ORFourthViewController)
__block UIWindow *window;
beforeEach(^{
window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
});
it(@"default", ^{
ORFourthViewController *vc = [[ORFourthViewController alloc] init];
window.rootViewController = vc;
expect(vc.view).willNot.beNil();
[window makeKeyAndVisible];
expect(window).will.haveValidSnapshotNamed(@"default");
});
SpecEnd