kernel/v2: test for some config

This commit is contained in:
Mitchell Hashimoto 2014-02-03 16:40:02 +01:00
parent 38c2a48ff4
commit 0e5840a14d
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
require File.expand_path("../../../../base", __FILE__)
require Vagrant.source_root.join("plugins/kernel_v2/config/vm")
describe VagrantPlugins::Kernel_V2::VMConfig do
subject { described_class.new }
describe "#provision" do
it "stores the provisioners" do
subject.provision("shell", inline: "foo")
subject.provision("shell", inline: "bar")
subject.finalize!
r = subject.provisioners
expect(r.length).to eql(2)
expect(r[0].config.inline).to eql("foo")
expect(r[1].config.inline).to eql("bar")
end
end
end