         XCTAssertTrue(capturingInkbunnyAPI.didLoadHomepage)
     }
 
+    func testSuccessfullyLoadingHomepageTellsDelegateFeedFinishedLoading() {
+        let successfulInkbunnyAPI = SuccessfulInkbunnyAPI()
+        let adapter = InkbunnyAPIAdapter(api: successfulInkbunnyAPI)
+        let capturingHomepageFeedDelegate = CapturingHomepageFeedDelegate()
+        adapter.loadFeed(delegate: capturingHomepageFeedDelegate)
+
+        XCTAssertTrue(capturingHomepageFeedDelegate.wasNotifiedDidFinishLoading)
+    }
+
 }


}

struct InkbunnyAPIAdapter: HomepageFeed {

    var api: InkbunnyAPIProtocol


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

