Skip to content

Commit

Permalink
Use new initializer of CellBinder in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkawa committed Sep 14, 2018
1 parent 619d895 commit b4c8e14
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/ACollectionViewCell.swift
Expand Up @@ -17,7 +17,7 @@ extension ACollectionViewCell: BindableCell {
static func makeBinder(value: A) -> CellBinder {
return CellBinder(
cellType: ACollectionViewCell.self,
nib: UINib(nibName: "ACollectionViewCell", bundle: Bundle(for: ACollectionViewCell.self)),
registrationMethod: .nib(UINib(nibName: "ACollectionViewCell", bundle: Bundle(for: ACollectionViewCell.self))),
reuseIdentifier: "ACollectionViewCell",
configureCell: { cell in
cell.idLabel.text = String(value.id)
Expand Down
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/ATableViewCell.swift
Expand Up @@ -17,7 +17,7 @@ extension ATableViewCell: BindableCell {
static func makeBinder(value: A) -> CellBinder {
return CellBinder(
cellType: ATableViewCell.self,
nib: UINib(nibName: "ATableViewCell", bundle: Bundle(for: ATableViewCell.self)),
registrationMethod: .nib(UINib(nibName: "ATableViewCell", bundle: Bundle(for: ATableViewCell.self))),
reuseIdentifier: "ATableViewCell",
configureCell: { cell in
cell.idLabel.text = String(value.id)
Expand Down
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/BCollectionViewCell.swift
Expand Up @@ -17,7 +17,7 @@ extension BCollectionViewCell: BindableCell {
static func makeBinder(value: B) -> CellBinder {
return CellBinder(
cellType: BCollectionViewCell.self,
nib: UINib(nibName: "BCollectionViewCell", bundle: Bundle(for: BCollectionViewCell.self)),
registrationMethod: .nib(UINib(nibName: "BCollectionViewCell", bundle: Bundle(for: BCollectionViewCell.self))),
reuseIdentifier: "BCollectionViewCell",
configureCell: { cell in
cell.idLabel.text = String(value.id)
Expand Down
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/BTableViewCell.swift
Expand Up @@ -17,7 +17,7 @@ extension BTableViewCell: BindableCell {
static func makeBinder(value: B) -> CellBinder {
return CellBinder(
cellType: BTableViewCell.self,
nib: UINib(nibName: "BTableViewCell", bundle: Bundle(for: BTableViewCell.self)),
registrationMethod: .nib(UINib(nibName: "BTableViewCell", bundle: Bundle(for: BTableViewCell.self))),
reuseIdentifier: "BTableViewCell",
configureCell: { cell in
cell.idLabel.text = String(value.id)
Expand Down
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/CCollectionViewCell.swift
Expand Up @@ -17,7 +17,7 @@ extension CCollectionViewCell: BindableCell {
static func makeBinder(value: C) -> CellBinder {
return CellBinder(
cellType: CCollectionViewCell.self,
nib: nil,
registrationMethod: .class(CCollectionViewCell.self),
reuseIdentifier: "CCollectionViewCell",
configureCell: { (cell) in
cell.idLabel.text = "\(value.id)"
Expand Down
2 changes: 1 addition & 1 deletion DataSourceKitTests/Example/CTableViewCell.swift
Expand Up @@ -31,7 +31,7 @@ extension CTableViewCell: BindableCell {
static func makeBinder(value: C) -> CellBinder {
return CellBinder(
cellType: CTableViewCell.self,
nib: nil,
registrationMethod: .class(CTableViewCell.self),
reuseIdentifier: "CTableViewCell",
configureCell: { (cell) in
cell.idLabel.text = "\(value.id)"
Expand Down

0 comments on commit b4c8e14

Please sign in to comment.