summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-01-11 10:20:30 -0500
committerJoel Fischer <joeljfischer@gmail.com>2017-01-11 10:20:30 -0500
commit84060e5478cf8c5228a55e1e3298ccf2004dc3a3 (patch)
tree99a735173593659e18de2535feda5dd2c7039d74
parent532757ab4739af89476faca083b6f1f890e57e5d (diff)
downloadsdl_ios-84060e5478cf8c5228a55e1e3298ccf2004dc3a3.tar.gz
Fixed test cases
* Updated some test dependencies
-rw-r--r--Cartfile.resolved4
-rw-r--r--SmartDeviceLink-iOS.xcodeproj/project.pbxproj4
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m7
3 files changed, 8 insertions, 7 deletions
diff --git a/Cartfile.resolved b/Cartfile.resolved
index b770aa4bd..e2b082f08 100644
--- a/Cartfile.resolved
+++ b/Cartfile.resolved
@@ -1,5 +1,5 @@
github "Quick/Nimble" "v4.1.0"
-github "AliSoftware/OHHTTPStubs" "5.2.1"
+github "AliSoftware/OHHTTPStubs" "5.2.3"
github "Quick/Quick" "v0.9.3"
github "facebook/ios-snapshot-test-case" "2.1.3"
-github "erikdoe/ocmock" "v3.3.1"
+github "erikdoe/ocmock" "v3.4"
diff --git a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
index 169f2fd8c..ba0d62d08 100644
--- a/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
+++ b/SmartDeviceLink-iOS.xcodeproj/project.pbxproj
@@ -5288,7 +5288,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 2.3;
};
name = Debug;
};
@@ -5318,7 +5318,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = "com.smartdevicelink.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
- SWIFT_VERSION = 3.0;
+ SWIFT_VERSION = 2.3;
};
name = Release;
};
diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m
index a0903293c..2cf28c817 100644
--- a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLLocationDetailsSpec.m
@@ -89,14 +89,15 @@ describe(@"Getter/Setter Tests", ^ {
});
describe(@"when initialized with a dictionary", ^{
- context(@"when parameters are set correctly", ^{
+ fcontext(@"when parameters are set correctly", ^{
beforeEach(^{
someCoordinate = [[SDLLocationCoordinate alloc] init];
someLocation = @"Livio";
someLocationDescription = @"A great place to work";
- someAddressLines = @[@"3136 Hilton Rd", @"Ferndale, MI", @"48220"];
+ someAddressLines = @[@"332 E Lincoln Ave", @"Royal Oak, MI", @"48067"];
somePhoneNumber = @"248-591-0333";
someImage = [[SDLImage alloc] init];
+ someAddress = [[SDLOasisAddress alloc] initWithSubThoroughfare:@"test" thoroughfare:@"1" locality:@"local" administrativeArea:@"admin" postalCode:@"48067" countryCode:@"12345"];
NSDictionary *initDict = @{
NAMES_locationCoordinate: someCoordinate,
NAMES_locationName: someLocation,
@@ -104,7 +105,7 @@ describe(@"Getter/Setter Tests", ^ {
NAMES_addressLines: someAddressLines,
NAMES_phoneNumber: somePhoneNumber,
NAMES_locationImage: someImage,
- NAMES_address: someAddress
+ NAMES_searchAddress: someAddress
};
testStruct = [[SDLLocationDetails alloc] initWithDictionary:[NSMutableDictionary dictionaryWithDictionary:initDict]];