kernel/v2: more tests

This commit is contained in:
Mitchell Hashimoto 2014-02-03 16:42:47 +01:00
parent 0e5840a14d
commit debc14f883
1 changed files with 9 additions and 0 deletions

View File

@ -16,5 +16,14 @@ describe VagrantPlugins::Kernel_V2::VMConfig do
expect(r[0].config.inline).to eql("foo")
expect(r[1].config.inline).to eql("bar")
end
it "marks as invalid if a bad name" do
subject.provision("nope", inline: "foo")
subject.finalize!
r = subject.provisioners
expect(r.length).to eql(1)
expect(r[0]).to be_invalid
end
end
end