kernel/v2: test for some config
This commit is contained in:
parent
38c2a48ff4
commit
0e5840a14d
|
@ -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
|
Loading…
Reference in New Issue