Skip to content

Commit 12c1473

Browse files
committed
include quick and nimble
1 parent d3eb8bb commit 12c1473

File tree

15 files changed

+42
-11
lines changed

15 files changed

+42
-11
lines changed

Cartfile.private

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Nimble
2+
github "Quick/Quick"
23
github "Quick/Nimble"
34

Cartfile.resolved

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
github "Quick/Nimble" "v6.1.0"
2-
github "gigigoapps/gigigo-ios-lib" "v2.3.2"
2+
github "Quick/Quick" "v1.1.0"
3+
github "gigigoapps/gigigo-ios-lib" "v2.3.3"

Carthage/Build/.gigigo-ios-lib.version

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.

GIGFormulary.xcodeproj/project.pbxproj

+6
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@
8383
7BBF32071E9CDEBA00DE19BA /* fomr2Compare.json in Resources */ = {isa = PBXBuildFile; fileRef = 7BBF32061E9CDEBA00DE19BA /* fomr2Compare.json */; };
8484
7BBF32091E9CF17A00DE19BA /* populateForm2.json in Resources */ = {isa = PBXBuildFile; fileRef = 7BBF32081E9CF17A00DE19BA /* populateForm2.json */; };
8585
7BBF320B1E9CFB2B00DE19BA /* CustomValidatorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BBF320A1E9CFB2B00DE19BA /* CustomValidatorTests.swift */; };
86+
7BC24EE01E9E7EB000B0A0E9 /* Nimble.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = 7BC24EDF1E9E7EB000B0A0E9 /* Nimble.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
87+
7BC24EE11E9E7EEE00B0A0E9 /* Nimble.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7BC24EDF1E9E7EB000B0A0E9 /* Nimble.framework */; };
8688
7BC7EB861D4F47D60022D1C5 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7BC7EB841D4F47580022D1C5 /* Localizable.strings */; };
8789
7BC7EB891D4F53240022D1C5 /* FormFieldModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BC7EB881D4F53240022D1C5 /* FormFieldModelTests.swift */; };
8890
7BC7EBC91D4F6F860022D1C5 /* Formulary.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7BC7EBC81D4F6F860022D1C5 /* Formulary.swift */; };
@@ -124,6 +126,7 @@
124126
dstPath = "";
125127
dstSubfolderSpec = 10;
126128
files = (
129+
7BC24EE01E9E7EB000B0A0E9 /* Nimble.framework in CopyFiles */,
127130
7B1BC7251E9BD243002F612B /* Quick.framework in CopyFiles */,
128131
7BB82FAC1D4B753C00DC85F5 /* GIGLibrary.framework in CopyFiles */,
129132
);
@@ -209,6 +212,7 @@
209212
7BBF32061E9CDEBA00DE19BA /* fomr2Compare.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = fomr2Compare.json; path = Json/fomr2Compare.json; sourceTree = "<group>"; };
210213
7BBF32081E9CF17A00DE19BA /* populateForm2.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = populateForm2.json; path = Json/populateForm2.json; sourceTree = "<group>"; };
211214
7BBF320A1E9CFB2B00DE19BA /* CustomValidatorTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CustomValidatorTests.swift; sourceTree = "<group>"; };
215+
7BC24EDF1E9E7EB000B0A0E9 /* Nimble.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Nimble.framework; path = Carthage/Build/iOS/Nimble.framework; sourceTree = "<group>"; };
212216
7BC7EB841D4F47580022D1C5 /* Localizable.strings */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; path = Localizable.strings; sourceTree = "<group>"; };
213217
7BC7EB881D4F53240022D1C5 /* FormFieldModelTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FormFieldModelTests.swift; path = Model/FormFieldModelTests.swift; sourceTree = "<group>"; };
214218
7BC7EBC81D4F6F860022D1C5 /* Formulary.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Formulary.swift; sourceTree = "<group>"; };
@@ -228,6 +232,7 @@
228232
isa = PBXFrameworksBuildPhase;
229233
buildActionMask = 2147483647;
230234
files = (
235+
7BC24EE11E9E7EEE00B0A0E9 /* Nimble.framework in Frameworks */,
231236
7BB82F911D4B723D00DC85F5 /* GIGLibrary.framework in Frameworks */,
232237
7BB82EFD1D4B5DB800DC85F5 /* GIGFormulary.framework in Frameworks */,
233238
7B1BC7211E9BD068002F612B /* Quick.framework in Frameworks */,
@@ -282,6 +287,7 @@
282287
7B1BC7231E9BD081002F612B /* External */ = {
283288
isa = PBXGroup;
284289
children = (
290+
7BC24EDF1E9E7EB000B0A0E9 /* Nimble.framework */,
285291
7B1BC7201E9BD068002F612B /* Quick.framework */,
286292
);
287293
name = External;

GIGFormularyTests/Components/FormControllerTests.swift

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
//
88

99
import XCTest
10+
import Quick
1011
import Nimble
1112
@testable import GIGFormulary
1213

@@ -53,8 +54,7 @@ class FormControllerTests: XCTestCase {
5354
self.formController.loadFieldsFromJSONDictionary(listForm)
5455

5556
//ASSERT
56-
// expect(self.formController.formFields.count).to(equal(12))
57-
XCTAssertTrue(self.formController.formFields.count == 12)
57+
expect(self.formController.formFields.count).to(equal(13))
5858
}
5959

6060
func test_formController_whenLoadJsonDicAndPopulate_returnFieldsPopulated() {
@@ -71,9 +71,9 @@ class FormControllerTests: XCTestCase {
7171
self.formController.populateData(dicPopulate)
7272

7373
//ASSERT
74-
let field = self.formController.formFields[1]
74+
let field = self.formController.formFields[2]
7575
let value = field.fieldValue as? String
76-
XCTAssertTrue(value == "value 2")
76+
expect(value).to(equal("value 2"))
7777
}
7878

7979
func test_formController_whenLoadJsonDicAndLoadError_returnFieldsLoadTextdWithError() {
@@ -90,9 +90,9 @@ class FormControllerTests: XCTestCase {
9090
self.formController.loadError(dicerror)
9191

9292
//ASSERT
93-
let field = self.formController.formFields[1]
93+
let field = self.formController.formFields[2]
9494
let textField = field as? TextFormField
95-
XCTAssertTrue(textField?.errorLabel.text == "error 2")
95+
expect(textField?.errorLabel.text).to(equal("error 2"))
9696
}
9797

9898
func test_formController_whenSendButton_returnValuesForms() {
@@ -111,7 +111,7 @@ class FormControllerTests: XCTestCase {
111111

112112
//ASSERT
113113
XCTAssertTrue(self.formControllerOutPutMock.recoverFormModelSpy)
114-
XCTAssertTrue(self.formControllerOutPutMock.formValuesOutput?.count == 12)
114+
expect(self.formControllerOutPutMock.formValuesOutput?.count).to(equal(13))
115115
}
116116

117117
func test_formController_whenSendButtonAndItemMandatoryIsNill_returnValuesForms() {
@@ -142,7 +142,7 @@ class FormControllerTests: XCTestCase {
142142
let viewContainer = self.formController.recoverView()
143143

144144
//ASSERT
145-
XCTAssertTrue(viewContainer.subviews.count == 12)
145+
expect(viewContainer.subviews.count).to(equal(13))
146146
}
147147

148148
func test_formController_whenCompareItems_returnSuccess() {

GIGFormularyTests/Json/form1.json

+23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
{
22
"fields":[
3+
{
4+
"key": "a",
5+
"type": "text",
6+
"label": "a",
7+
"isEditing": true,
8+
"isHidden": true,
9+
"isPassword": true,
10+
"compare": true,
11+
"itemsCompare": [
12+
"a"
13+
],
14+
"textErrorCompare": "error",
15+
"style": {
16+
"backgroundColorField": "#5091ff",
17+
"titleColor": "#72ff97",
18+
"errorColor": "#ff303b",
19+
"sizeTitle": 12,
20+
"sizeError": 31,
21+
"align": "alignLeft",
22+
"font": "AmericanTypewriter",
23+
"mandatoryIcon": "imagenMandatory"
24+
}
25+
},
326
{
427
"isHidden": true,
528
"mandatory": false,

0 commit comments

Comments
 (0)