diff --git a/lib/draper/test_case.rb b/lib/draper/test_case.rb index 99a424a..7d16356 100644 --- a/lib/draper/test_case.rb +++ b/lib/draper/test_case.rb @@ -3,9 +3,9 @@ module Draper class TestCase < ::ActiveSupport::TestCase module ViewContextTeardown - def teardown - super + def before_setup Draper::ViewContext.clear! + super end end