diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2015-07-31 14:45:42 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2015-07-31 14:45:42 -0700 |
commit | abf85c2718ecc8cc70aa50d0c1e9560b40e7953a (patch) | |
tree | 2834dc12b55341cb616f76f4a940b0325cea058c | |
parent | 63711b9da81c9db8466a2c45670f8d94cfdaac68 (diff) | |
download | chef-abf85c2718ecc8cc70aa50d0c1e9560b40e7953a.tar.gz |
Add a test for the new output.
-rw-r--r-- | spec/unit/formatters/doc_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/formatters/doc_spec.rb b/spec/unit/formatters/doc_spec.rb index d018207f49..eb98f5abd3 100644 --- a/spec/unit/formatters/doc_spec.rb +++ b/spec/unit/formatters/doc_spec.rb @@ -43,4 +43,10 @@ describe Chef::Formatters::Base do expect(out.string).to include("Using policy 'jenkins' at revision '613f803bdd035d574df7fa6da525b38df45a74ca82b38b79655efed8a189e073'") end + it "prints cookbook name and version" do + cookbook_version = double(name: "apache2", version: "1.2.3") + formatter.synchronized_cookbook("apache2", cookbook_version) + expect(out.string).to include("- apache2 (1.2.3") + end + end |