From 87a47a31078ea8fde518b229dfaad7fde5f7da92 Mon Sep 17 00:00:00 2001 From: David Patterson Date: Thu, 3 Mar 2016 23:22:58 -0600 Subject: [PATCH] minor edits --- SwiftValidatorTests/SwiftValidatorTests.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SwiftValidatorTests/SwiftValidatorTests.swift b/SwiftValidatorTests/SwiftValidatorTests.swift index c8519fc..2275cc3 100644 --- a/SwiftValidatorTests/SwiftValidatorTests.swift +++ b/SwiftValidatorTests/SwiftValidatorTests.swift @@ -405,7 +405,7 @@ class SwiftValidatorTests: XCTestCase { } } - /// Used to test validation on a single field that has remote validation + /// Used to test validation success on a single field that has remote validation func testValidateSuccessSingleRemoteField() { REGISTER_TXT_FIELD.text = VALID_EMAIL REGISTER_VALIDATOR.registerField(REGISTER_TXT_FIELD, errorLabel: ERROR_LABEL, rules: [EmailRule()], remoteInfo: (urlString: URL_STRING, error: EMAIL_TAKEN_MESSAGE)) @@ -415,6 +415,7 @@ class SwiftValidatorTests: XCTestCase { } } + /// Used to test validation failure on a single field that has remote validation func testValidateFailureSingleRemoteField() { REGISTER_TXT_FIELD.text = VALID_EMAIL REGISTER_VALIDATOR.registerField(REGISTER_TXT_FIELD, errorLabel: ERROR_LABEL, rules: [EmailRule()], remoteInfo: (urlString: URL_STRING, error: EMAIL_TAKEN_MESSAGE))