InvalidTransition exception should be a runtime error
Reported by Rob Sanheim | August 13th, 2008 @ 05:43 PM
InvalidTransition should inherit from RuntimeError, and not Exception, right? Since it descends from Exception, it blows up test suites hard in the middle of the run instead of just being captured as an error. Also, this would would break the normal rescue RuntimeError => e since Exception is the parent of RuntimeError.
Declaration can be seen here:
Comments and changes to this ticket
-
Scott Barron August 13th, 2008 @ 06:01 PM
- State changed from new to resolved
Indeed it should, fixed in 3d29103. Thanks.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Library for adding state machines to Ruby classes. Includes persistence layers for things like ActiveRecord. Formerly known as acts_as_state_machine.