apotonick/hooks — pull request #8 by mrzor (2012-11-01 14:59:58+00:00)
Title: return hook results in run_hook_for

Precedently, `run_hook_for` returned the callback list, which can also be obtained using `callbacks_for_hook`. One test relied on this behavior and had to be adapted.

Since this was previously undocumented behavior, I don't believe it qualifies as an API breakage.

It is more convenient than relying on handmade setup accumulator (like `@executed` in tests), but I didn't want to refactor all the tests to demonstrate it - although I'd be keen to do it if you deem it appropriate.

Hope it gets in :)