BodyCellViewModelTest remove magic numger and improve naming IOS-1719
authorAlejandro Gelos <alejandro@pep-project.org>
Mon, 05 Aug 2019 16:48:37 +0200
branchIOS-1719
changeset 9541606bbce2e550
parent 9538 ed541a9548f3
child 9555 f0752199be57
child 9568 351c07f29865
BodyCellViewModelTest remove magic numger and improve naming
pEpForiOSTests/UI/Compose/Cells/BodyCell/BodyCellViewModelTest.swift
     1.1 --- a/pEpForiOSTests/UI/Compose/Cells/BodyCell/BodyCellViewModelTest.swift	Mon Aug 05 16:17:29 2019 +0200
     1.2 +++ b/pEpForiOSTests/UI/Compose/Cells/BodyCell/BodyCellViewModelTest.swift	Mon Aug 05 16:48:37 2019 +0200
     1.3 @@ -405,10 +405,10 @@
     1.4          waitForExpectations(timeout: UnitTestUtils.waitTime)
     1.5      }
     1.6  
     1.7 -    func testShouldReplaceText_attachment_removeFive() {
     1.8 -        shouldReplaceText_attachment(remove: 10)
     1.9 +    func testShouldReplaceText_attachment_multipleRemove() {
    1.10 +        let attachmentsToRemoveCount = 10
    1.11 +        shouldReplaceText_attachment(remove: attachmentsToRemoveCount)
    1.12      }
    1.13 -
    1.14      func shouldReplaceText_attachment (remove: Int) {
    1.15          var textBuilder = NSAttributedString(string: "Test text")
    1.16          let range = NSRange(location: 0, length: 0)