adhearsion / adhearsion-asterisk

Asterisk specific features for Adhearsion
http://adhearsion.com
MIT License
17 stars 15 forks source link

Feature/features conf #2

Closed taylor closed 12 years ago

taylor commented 12 years ago

Code review requested and merge if ready.

Specs:

All test are passing.

I could not figure out how to remove the existing hack for not mocking Hash# with the test lambda so I just adjusted it to work with Mocha.

Code:

enable/disable_feature are dialplan methods.

I do not think extend_dynamic_features_with() should be defined as a normally seen method, but that seems to be the only way to make it available in the same namespace w/o some ugly direct Module/Class specification for the definition.