-
Notifications
You must be signed in to change notification settings - Fork 92
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
Exception within transition not raised #34
Comments
Take a look at the test cases like this one that halts a trasition. If you are seeking to disallow the transition on an action error, you need to use Does this describe your desired behavior? If you see something misbehaving or you would like it to yield more information (perhaps this case), submitting even just a test-only pull request is helpful as well. |
I'm actually not expecting an exception to be thrown in the actual execution of the While writing the Does that make sense? |
It does make sense, but I think the nature of a callback is that it will not fail for the execution code, but it certainly would be nice if it would at least dump to stderr if there was a problem. It looks like you are seeking a behavioral change wherein the I'm not sure of the reasoning or expectations on the You might redirect the |
Bump! I keep running into cases where server hangs if there's an error in a transition, with no indication as to what is happening. Wondering if anyone else has had these kinds of problems. When running standalone rails server it's not that big a deal, but when running in foreman, have to kill -9 the ruby process. Super annoying. |
Hmm. Does this error still persist? |
Good question. Can you try to reproduce in the test suite? |
When writing tests for some after_transition callbacks I haven't seen exceptions being raised within the callback.
Example:
I'd expect a
NameError
to be raised but the test continues execution. Is this intended behavior?The text was updated successfully, but these errors were encountered: