 
     func loadFeed(delegate: HomepageFeedDelegate) {
         api.loadHomepage { _ in
-
+            delegate.feedDidFinishLoading(items: [])
         }
     }
 


}

struct InkbunnyAPIAdapter: HomepageFeed {

    var api: InkbunnyAPIProtocol

        XCTAssertTrue(capturingInkbunnyAPI.didLoadHomepage)
    }

    func testSuccessfullyLoadingHomepageTellsDelegateFeedFinishedLoading() {
        let successfulInkbunnyAPI = SuccessfulInkbunnyAPI()
        let adapter = InkbunnyAPIAdapter(api: successfulInkbunnyAPI)
        let capturingHomepageFeedDelegate = CapturingHomepageFeedDelegate()
        adapter.loadFeed(delegate: capturingHomepageFeedDelegate)

        XCTAssertTrue(capturingHomepageFeedDelegate.wasNotifiedDidFinishLoading)
    }

}
