diff --git a/test/unit/vagrant/action/builtin/provision_test.rb b/test/unit/vagrant/action/builtin/provision_test.rb index 89c09f553..4952582af 100644 --- a/test/unit/vagrant/action/builtin/provision_test.rb +++ b/test/unit/vagrant/action/builtin/provision_test.rb @@ -107,13 +107,13 @@ describe Vagrant::Action::Builtin::Provision do end it "should not run if provision types are set and provisioner is not included" do - env[:provision_types] = ["other-provisioner", "other-test"] + env[:provision_types] = [:"other-provisioner", :"other-test"] expect(hook).not_to receive(:call).with(:provisioner_run, anything) instance.call(env) end it "should run if provision types are set and include provisioner name" do - env[:provision_types] = ["spec-test"] + env[:provision_types] = [:"spec-test"] expect(hook).to receive(:call).with(:provisioner_run, anything) instance.call(env) end @@ -142,13 +142,13 @@ describe Vagrant::Action::Builtin::Provision do end it "should not run if provision types are set and provisioner is not included" do - env[:provision_types] = ["other-provisioner", "other-test"] + env[:provision_types] = [:"other-provisioner", :"other-test"] expect(hook).not_to receive(:call).with(:provisioner_run, anything) instance.call(env) end it "should run if provision types are set and include provisioner name" do - env[:provision_types] = ["spec-test"] + env[:provision_types] = [:"spec-test"] expect(hook).to receive(:call).with(:provisioner_run, anything) instance.call(env) end @@ -177,13 +177,13 @@ describe Vagrant::Action::Builtin::Provision do end it "should not run if provision types are set and provisioner is not included" do - env[:provision_types] = ["other-provisioner", "other-test"] + env[:provision_types] = [:"other-provisioner", :"other-test"] expect(hook).not_to receive(:call).with(:provisioner_run, anything) instance.call(env) end it "should run if provision types are set and include provisioner name" do - env[:provision_types] = ["spec-test"] + env[:provision_types] = [:"spec-test"] expect(hook).to receive(:call).with(:provisioner_run, anything) instance.call(env) end @@ -192,7 +192,7 @@ describe Vagrant::Action::Builtin::Provision do File.open(File.join(data_dir.to_s, "action_provision"), "w") do |file| file.write("1.5:machine-id") end - env[:provision_types] = ["spec-test"] + env[:provision_types] = [:"spec-test"] expect(hook).to receive(:call).with(:provisioner_run, anything) instance.call(env) end