lib/draper/test/rspec_integration.rb in draper-1.2.1 vs lib/draper/test/rspec_integration.rb in draper-1.3.0

- old
+ new

@@ -8,9 +8,9 @@ RSpec.configure do |config| 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