Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expect methods for Exceptions #2

Open
hastebrot opened this issue May 20, 2016 · 1 comment
Open

Expect methods for Exceptions #2

hastebrot opened this issue May 20, 2016 · 1 comment

Comments

@hastebrot
Copy link
Contributor

hastebrot commented May 20, 2016

expect { throw RuntimeException("error") }.to.`throw`.a(RuntimeException::class)
@winterbe
Copy link
Owner

Good advice. I'd go for a similar API like this.

I'll like into this as soon as a find the time, hopefully this weekend.

saku added a commit to saku/expekt that referenced this issue Dec 17, 2016
Update README text also.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants