pluginaweek/state_machine — Issue #147: How to test transition callbacks?
Author: apneadiving
Created: 2011-12-12 23:43:17+00:00
State: open

Hi,

I'd like to know what's the cleanest way to test that transition callbacks are being triggered.

For instance, how would you test:

before_transition :parked => any - :parked, :do => :put_on_seatbelt

Thanks,

Ben