-
Notifications
You must be signed in to change notification settings - Fork 15
/
PreferencesWireframeSpec.swift
36 lines (30 loc) · 1.02 KB
/
PreferencesWireframeSpec.swift
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
//
// PreferencesWireframeSpec.swift
// FBSnapshotsViewer
//
// Created by Anton Domashnev on 14.05.17.
// Copyright © 2017 Anton Domashnev. All rights reserved.
//
import Quick
import Nimble
@testable import FBSnapshotsViewer
class PreferencesWireframeSpec: QuickSpec {
override func spec() {
var wireframe: PreferencesWireframe!
var moduleDelegate: PreferencesModuleDelegateMock!
var configurationStorage: ConfigurationStorageMock!
beforeEach {
configurationStorage = ConfigurationStorageMock()
moduleDelegate = PreferencesModuleDelegateMock()
wireframe = PreferencesWireframe()
}
describe(".show") {
beforeEach {
configurationStorage.loadConfigurationReturnValue = Configuration.default()
}
it("returns preferences module") {
expect(wireframe.show(withDelegate: moduleDelegate, configurationStorage: configurationStorage)).toNot(beNil())
}
}
}
}