pluginaweek / state_machine

Adds support for creating state machines for attributes on any Ruby class
http://www.pluginaweek.org
MIT License
3.74k stars 505 forks source link

state_machine_rspec #339

Closed neumachen closed 9 years ago

neumachen commented 9 years ago

So I want to contribute to that gem by adding a trigger_event function and was wondering if there's a built in way for gem for this?

Because right now, I can validate it to have events and what transitions it does but I want to make a test when triggering an even is allowed or not.

I know it sounds redundant when I have the have_events function already but requirement needs me to test for trigger events as well.

Thanks.

seuros commented 9 years ago

#fire_event

neumachen commented 9 years ago

Thanks.