Add tests for Chef Zero config

This commit is contained in:
Seth Vargo 2014-10-30 12:02:29 -04:00
parent a8a35757ee
commit f5b9044e39
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
require_relative "../../../../base"
require Vagrant.source_root.join("plugins/provisioners/chef/config/chef_zero")
describe VagrantPlugins::Chef::Config::ChefZero do
include_context "unit"
subject { described_class.new }
let(:machine) { double("machine") }
describe "#nodes_path" do
it "defaults to an array" do
subject.finalize!
expect(subject.nodes_path).to be_a(Array)
expect(subject.nodes_path).to be_empty
end
end
end