alexpeachey / end_state

A State Machine implementation
MIT License
9 stars 5 forks source link

Explicitly call Kernel.fail #36

Closed VOjha closed 8 years ago

VOjha commented 8 years ago

Issue #35

Explicitly call Kernel.fail instead of fail. This will prevent a transition named :fail from messing up the InvalidTransition error.

@alexpeachey

alexpeachey commented 8 years ago

Please add a test that shows a machine with a fail action and then use that machine to make an invalid transition to show the exception gets thrown instead of the fail action swallowing it.

rossfoley commented 8 years ago

@alexpeachey Tests added