                     }
                 }
 
+                beforeEach {
+                    collectionView.fakeIndexPath = IndexPath(item: 0, section: 0)
+                }
+
                 context("post has not been loved") {
                     it("loves the post") {
                         stubCellItems(false)



class PostbarControllerSpec: QuickSpec {
    class ReplyAllCreatePostResponder: UIWindow, CreatePostResponder {
        var postId: String?
        var post: Post?

        }
        func editPost(_ post: Post, fromController: UIViewController) {
            self.post = post
        }
    }

    class FakeCollectionView: UICollectionView {
        var fakeIndexPath: IndexPath?

        override func indexPath(for: UICollectionViewCell) -> IndexPath? {
            return fakeIndexPath
        }
    }

