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
Handling Exceptions #12
Comments
Thats a good question, There are actually helper functions for that. Here is an example of how to accomplish what you're looking for:
The Catch.Exception helper method basically takes in any action and expects to catch an exception. If no exception is thrown it returns a DidNotThrowExceptionException. I've been contemplating changing that behavior, so if you have suggestions let me know. |
Thanks Nathan, that works fine. Is there any other documentation other than the readme? Thanks Robert Quoting Nathan Gonzalez notifications@github.com:
|
Unfortunately not. There is a lot of hidden features. I've been meaning to dig back into this more lately as my time has been freeing up more to work on open source stuff. I'll add an issue for documentation and try and get started on it. I'm conflicted about whether to start by documenting some of the more hidden features or just the plain workings of it. |
there is this, i guess, from back when i released it last year... http://thenathangonzalez.wordpress.com/2013/10/12/given-bdd-framework/ |
I would do a high level summary of the functionality so people have an Quoting Nathan Gonzalez notifications@github.com:
|
sounds like a reasonable plan. |
How should we handle testing events or expected exceptions such as security or business rule violation?
The text was updated successfully, but these errors were encountered: