IOS-1495 selectability it's something setted and not by default IOS-1521+IOS-1495
authorXavier Algarra <xavier@pep-project.org>
Wed, 15 May 2019 16:04:02 +0200
branchIOS-1521+IOS-1495
changeset 86292259535aff79
parent 8628 39a13d22e284
child 8655 c9f00a767e82
IOS-1495 selectability it's something setted and not by default
pEpForiOSTests/Models/Folder/FolderCellViewModelTests.swift
     1.1 --- a/pEpForiOSTests/Models/Folder/FolderCellViewModelTests.swift	Wed May 15 15:58:58 2019 +0200
     1.2 +++ b/pEpForiOSTests/Models/Folder/FolderCellViewModelTests.swift	Wed May 15 16:04:02 2019 +0200
     1.3 @@ -56,7 +56,6 @@
     1.4          let isSelectable = viewModel.isSelectable
     1.5          XCTAssertTrue(isSelectable)
     1.6      }
     1.7 -
     1.8      func testIsSelectableFolderIfIsLocal() {
     1.9          givenAViewModelWithLocalFolder()
    1.10          let isSelectable = viewModel.isSelectable
    1.11 @@ -71,6 +70,7 @@
    1.12  
    1.13      func givenAViewModelWithSelectableFolder() {
    1.14          folder = Folder(name: Input.folderName, parent: nil, account: account, folderType:.outbox, selectable: false)
    1.15 +        folder.selectable = true
    1.16          viewModel = FolderCellViewModel(folder: folder, level: 0)
    1.17      }
    1.18      
    1.19 @@ -80,6 +80,7 @@
    1.20  
    1.21      func givenAViewModelWithLocalFolder() {
    1.22          folder = Folder(name: Input.folderName, parent: nil, account: account, folderType: .outbox)
    1.23 +        folder.selectable = true
    1.24          viewModel = FolderCellViewModel(folder: folder, level: 0)
    1.25  
    1.26      }