Skip to content

Commit

Permalink
Updates for rebase that removed IGListSectionType
Browse files Browse the repository at this point in the history
  • Loading branch information
amonshiz committed Apr 19, 2017
1 parent 7262625 commit e0f6a65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Source/Internal/IGListSectionMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ IGLK_SUBCLASSING_RESTRICTED
@param objects The objects in the collection.
@param sectionControllers The section controllers that map to each object.
*/
- (void)updateWithObjects:(NSArray <id <NSObject>> *)objects sectionControllers:(NSArray <IGListSectionController<IGListSectionType> *> *)sectionControllers;
- (void)updateWithObjects:(NSArray <id <NSObject>> *)objects sectionControllers:(NSArray <IGListSectionController *> *)sectionControllers;

/**
Fetch a section controller given a section.
Expand Down
6 changes: 3 additions & 3 deletions Tests/IGListAdapterTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ - (void)test_whenInsertingAtBeginning_thatAllSectionControllerIndexesUpdateCorre
self.dataSource.objects = @[one, two, three];
[self.adapter performUpdatesAnimated:NO completion:nil];

IGListSectionController<IGListSectionType> *controller1a = [self.adapter sectionControllerForObject:one];
IGListSectionController *controller1a = [self.adapter sectionControllerForObject:one];
XCTAssertEqual(controller1a.sectionIndex, 0);
XCTAssertTrue(controller1a.isFirstSection);

Expand All @@ -1152,11 +1152,11 @@ - (void)test_whenInsertingAtBeginning_thatAllSectionControllerIndexesUpdateCorre
self.dataSource.objects = @[zero, one, two, three];
[self.adapter performUpdatesAnimated:NO completion:nil];

IGListSectionController<IGListSectionType> *controller0 = [self.adapter sectionControllerForObject:zero];
IGListSectionController *controller0 = [self.adapter sectionControllerForObject:zero];
XCTAssertEqual(controller0.sectionIndex, 0);
XCTAssertTrue(controller0.isFirstSection);

IGListSectionController<IGListSectionType> *controller1b = [self.adapter sectionControllerForObject:one];
IGListSectionController *controller1b = [self.adapter sectionControllerForObject:one];
XCTAssertEqual(controller1b.sectionIndex, 1);
XCTAssertFalse(controller1b.isFirstSection);

Expand Down

0 comments on commit e0f6a65

Please sign in to comment.