Adding ChefSpec::Coverage to spec_helper.rb

Change-Id: Ia40b7be0c24afd4220550e043833304a25e88e93
Addresses: blueprint lint-and-unit-testing-for-havana
This commit is contained in:
galstrom21 2014-02-18 13:45:07 +00:00
parent bc8c18e90d
commit e4c5a5db52
1 changed files with 6 additions and 0 deletions

View File

@ -35,3 +35,9 @@ def ops_messaging_stubs # rubocop:disable MethodLength
.with('service', 'rabbit_cookie')
.and_return 'erlang-cookie'
end
# README(galstrom21): This will remove any coverage warnings from
# dependent cookbooks
ChefSpec::Coverage.filters << '*/openstack-ops-messaging'
at_exit { ChefSpec::Coverage.report! }