diff --git a/.gitignore b/.gitignore index 89e55045..3aa81a40 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ cookbooks/ .cookbooks .vagrant *.swp - +.coverage/ diff --git a/Gemfile b/Gemfile index 612085bd..a42e8e3d 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" gem "chef", "~> 11.4.4" gem "json", "<= 1.7.7" # chef dependency gem "berkshelf", "~> 2.0.10" -gem "chefspec", "~> 3.0.2" +gem "chefspec", "~> 3.1.0" gem "foodcritic", "~> 3.0.3" gem "strainer" gem "webmock", "~> 1.11.0" diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 96dc099e..6d0297ea 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -74,3 +74,5 @@ def neutron_stubs stub_command("ip link show eth1").and_return(false) end + +at_exit { ChefSpec::Coverage.report! }