Skip to content

Commit

Permalink
Merge pull request #547 from gaizka/master
Browse files Browse the repository at this point in the history
Clear ViewContext before specs instead of after
  • Loading branch information
steveklabnik committed May 28, 2013
2 parents d0bf8d1 + 26ad3be commit 66e33e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/draper/test/rspec_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module DecoratorExampleGroup
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

0 comments on commit 66e33e5

Please sign in to comment.