jcasimir/draper — pull request #253 by ihoka (2012-08-14 11:31:04+00:00)
Title: Fixed view_context priming. Fixes #244, relates to 057ab4e8.

Fix in 057ab4e8 resulted in a "NameError: undefined local variable or method `view_context' for Draper::ViewContext:Module".

References:

* Pull request #241 changes the way view_context is set up
* Issue #244: 057ab4e8 attempts to prime the view_context when not set. However, "current" is a class method, while "view_context" is an instance method.

Added failing spec.