Created
January 5, 2018 23:11
-
-
Save epool/a3d78aff18acdf6ec78eb3f61abf12bf to your computer and use it in GitHub Desktop.
Pikmail Invalid Email Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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