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.
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.