minor edits

This commit is contained in:
David Patterson 2016-03-03 23:22:58 -06:00
parent f9fad02c3d
commit 87a47a3107
1 changed files with 2 additions and 1 deletions

View File

@ -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))