Merge pull request #547 from gaizka/master
Clear ViewContext before specs instead of after
This commit is contained in:
commit
66e33e553b
|
@ -10,7 +10,7 @@ module Draper
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue