summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-07-31 14:45:42 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-07-31 14:45:42 -0700
commitabf85c2718ecc8cc70aa50d0c1e9560b40e7953a (patch)
tree2834dc12b55341cb616f76f4a940b0325cea058c
parent63711b9da81c9db8466a2c45670f8d94cfdaac68 (diff)
downloadchef-abf85c2718ecc8cc70aa50d0c1e9560b40e7953a.tar.gz
Add a test for the new output.
-rw-r--r--spec/unit/formatters/doc_spec.rb6
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