diff --git a/lib/draper/test/rspec_integration.rb b/lib/draper/test/rspec_integration.rb index 0a787fe7..e6317149 100755 --- a/lib/draper/test/rspec_integration.rb +++ b/lib/draper/test/rspec_integration.rb @@ -10,7 +10,7 @@ module DecoratorExampleGroup config.include DecoratorExampleGroup, example_group: {file_path: %r{spec/decorators}}, type: :decorator [:decorator, :controller, :mailer].each do |type| - config.after(:each, type: type) { Draper::ViewContext.clear! } + config.before(:each, type: type) { Draper::ViewContext.clear! } end end end