Skip to content

Instantly share code, notes, and snippets.

@rozkminiacz
Created March 12, 2018 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rozkminiacz/371a8a8c8b71748cce4277026a371b42 to your computer and use it in GitHub Desktop.
Save rozkminiacz/371a8a8c8b71748cce4277026a371b42 to your computer and use it in GitHub Desktop.
on("presenter attach") {
presenter.attach(view)
it("should attach view") {
assertNotNull(presenter.view)
}
it("should start loading") {
verify(view).showLoading()
}
it("should load list into view") {
verify(view).addPeople(peopleList)
}
it("should stop loading") {
verify(view).hideLoading()
}
it("should never show any error") {
verify(view, never()).showError(anyOrNull())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment