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:
commit
66e33e553b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue