benzelano / test_lh_import

1 stars 0 forks source link

Events called by an event attribute don't trigger overidden event methods #58

Closed benzelano closed 13 years ago

benzelano commented 13 years ago

Gareth Adams opened this issue

Hopefully the title and attached test should explain the problem, otherwise I’m happy to elaborate.

original LH ticket

This ticket has 1 attachment(s).

benzelano commented 13 years ago

Gareth Adams commented

Actually, after thinking about it, the test override method might be better off defined as

@@@ ruby Vehicle.class_eval do @@@

rather than

@@@ ruby @vehicle.instance_eval do @@@

benzelano commented 13 years ago

This is a dupe of #30. Instead of re-defining the method, you should use around_transitions.

benzelano commented 13 years ago

Gareth Adams commented

I completely missed the documentation for :on #rtfm-fail

Thanks :)