diff --git a/test/acceptance/provisioning/basic_test.rb b/test/acceptance/provisioning/basic_test.rb index dd7db761f..b95159ef5 100644 --- a/test/acceptance/provisioning/basic_test.rb +++ b/test/acceptance/provisioning/basic_test.rb @@ -25,6 +25,23 @@ vf result_file.exist?.should_not be end + it "can provision with multiple provisioners" do + # Skeleton for multiple provisioners + environment.skeleton!("provisioner_multi") + + # Setup the basic environment + require_box("default") + assert_execute("vagrant", "box", "add", "base", box_path("default")) + + # Bring up the VM, only using the shell provisioner + assert_execute("vagrant", "up") + + # Verify the file the shell provisioner made is there, but not the + # Chef one. + environment.workdir.join("shell").exist?.should be + environment.workdir.join("chef_solo").exist?.should be + end + it "only uses the provisioners specified with `--provision-with`" do # Skeleton for multiple provisioners environment.skeleton!("provisioner_multi")