7e3ace0242
We are using Draper with Minitest and experiencing the "leakage" of mailer view contexts into decorator tests. See #814 and related. Draper does attempt to prevent the leakage by clearing the view context in a `teardown` hook, but this isn't effective. We are still seeing the problem. This PR moves the clearing from `teardown` to `before_setup`, which properly resolves the leakage. |
||
---|---|---|
.. | ||
draper | ||
generators | ||
draper.rb |