Skip to content

Instantly share code, notes, and snippets.

@epool
Created January 5, 2018 23:11
Show Gist options
  • Save epool/a3d78aff18acdf6ec78eb3f61abf12bf to your computer and use it in GitHub Desktop.
Save epool/a3d78aff18acdf6ec78eb3f61abf12bf to your computer and use it in GitHub Desktop.
Pikmail Invalid Email Test
object PikmailTest : Spek({
given("a Pikmail object") {
on("get a profile for an invalid Gmail address") {
val invalidGmailAddress = "test@mail.com"
val testObservable = Pikmail.getProfile(invalidGmailAddress).test()
it("should throw a ProfileNotFountException") {
testObservable.assertError(ProfileNotFountException::class.java)
}
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment