Open aaronchi opened 10 years ago
Sounds interesting! Could you post a sample spec here that illustrates exactly what you're looking for?
Using the example from state_machine, something like:
it { should trigger_event :put_on_seatbelt, when: :parked, on: :ignite, before: :transition }
it { should trigger_event :tow, on: :crash, after: :transition }
it { should trigger_event :fix, on: :repair, after: :transition }
Someone working on this? I can work on this if needed.
Would be nice to have a triggers_event matcher for testing callbacks