forked from vincentsaluzzo/Homebrew-GUI
-
Notifications
You must be signed in to change notification settings - Fork 2
/
LHBModelTest.m
27 lines (23 loc) · 882 Bytes
/
LHBModelTest.m
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
//
// LHBModelTest.m
// Brewery
//
// Created by Seán Labastille on 18/1/13.
// Copyright (c) 2013 Labastille Laser Corp. All rights reserved.
//
#import "LHBModel.h"
#import "LHBInstalledViewController.h"
#import "Kiwi.h"
SPEC_BEGIN(LHBModelSpec)
describe(@"Model", ^{
it(@"should be nil before fetching installed formulas", ^{
[[[LHBModel sharedInstance] installedFormulas] shouldBeNil];
});
it(@"should not be nil after fetching installed formulas", ^{
id installedViewControllerMock = [LHBInstalledViewController new];
[installedViewControllerMock refreshInstalledFormulas:nil];
[[[expectFutureValue([[LHBModel sharedInstance] installedFormulas]) shouldEventuallyBeforeTimingOutAfter(5.0)] haveAtLeast:1] items];
//NSLog(@"Installed formulas: %@", [[LHBModel sharedInstance] installedFormulas]);
});
});
SPEC_END