drapergem/draper — pull request #312 by jpfuentes2 (2012-10-16 14:45:50+00:00)
Title: move #helpers (delegates to HelperProxy) to module

Since the #helpers interface lives in a module, we
can now re-use the HelperProxy logic in custom
"Presenter" classes which do not inherit from
Draper::Decorator. These custom classes may either
wrap 1..N different collections of AR models
and/or POROs.

See https://github.com/drapergem/draper/issues/194 for more info.

I'm also thinking that specs need to be cleaned up relating to the `#helpers` interface here:

https://github.com/drapergem/draper/blob/master/spec/draper/decorator_spec.rb#L23-60
https://github.com/drapergem/draper/blob/master/spec/draper/collection_decorator_spec.rb#L9-22

These tests are effectively duplicating my new spec. I suspect they can be minimized to testing for their inclusion of the `ViewHelpers` module. Thoughts?