1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00
draper/spec
Jacques Fuentes 7db9e224a0 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.
2012-10-16 10:38:51 -04:00
..
draper move #helpers (delegates to HelperProxy) to module 2012-10-16 10:38:51 -04:00
generators/decorator Rename Base to Decorator 2012-10-09 10:05:22 +01:00
minitest-rails Update minitest integration 2012-09-27 13:46:27 -06:00
support/samples Rename ModelSupport to Decoratable 2012-10-09 10:11:57 +01:00
spec_helper.rb Clear the context per request, and assign a controller reference that is used to create a new view context on demand if needed by draper outside of a template context. Fixes #287. Split out the system initialization into action_controller and action_mailer pieces for clarity. Guarded the view context lazy initialization to only attempt to create a test context if the proper test classes exist (as they won't outside of test mode). 2012-10-01 14:30:18 -07:00