1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

Merge pull request #547 from gaizka/master

Clear ViewContext before specs instead of after
This commit is contained in:
Steve Klabnik 2013-05-28 11:28:49 -07:00
commit 66e33e553b

View file

@ -10,7 +10,7 @@ module Draper
config.include DecoratorExampleGroup, example_group: {file_path: %r{spec/decorators}}, type: :decorator config.include DecoratorExampleGroup, example_group: {file_path: %r{spec/decorators}}, type: :decorator
[:decorator, :controller, :mailer].each do |type| [: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 end
end end