From 685f6d7e1967f5232e5bd73acd5e9ac244b861d6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 20 Nov 2015 15:13:35 -0800 Subject: [PATCH] ansible tests passing on Windows --- test/unit/plugins/provisioners/ansible/config_test.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/unit/plugins/provisioners/ansible/config_test.rb b/test/unit/plugins/provisioners/ansible/config_test.rb index 3fdc66ddb..5babba6f5 100644 --- a/test/unit/plugins/provisioners/ansible/config_test.rb +++ b/test/unit/plugins/provisioners/ansible/config_test.rb @@ -1,6 +1,8 @@ require_relative "../../../base" require_relative "../support/shared/config" +require "vagrant/util/platform" + require Vagrant.source_root.join("plugins/provisioners/ansible/config/host") describe VagrantPlugins::Ansible::Config::Host do @@ -10,7 +12,10 @@ describe VagrantPlugins::Ansible::Config::Host do let(:machine) { double("machine", env: Vagrant::Environment.new) } let(:existing_file) { File.expand_path(__FILE__) } - let(:non_existing_file) { "/this/does/not/exist" } + let(:non_existing_file) do + next "/this/does/not/exist" if !Vagrant::Util::Platform.windows? + "C:/foo/nope/nope" + end it "supports a list of options" do config_options = subject.public_methods(false).find_all { |i| i.to_s.end_with?('=') }