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
1 changed files with 1 additions and 1 deletions

View File

@ -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