provisioners/ansible: add missing unit test

Related to #5292
This commit is contained in:
Gilles Cornu 2015-11-17 08:00:24 +01:00
parent a0576349fe
commit b9738a8c4c
1 changed files with 14 additions and 1 deletions

View File

@ -678,7 +678,20 @@ VF
# Special cases related to the Vagrant Host operating system in use # Special cases related to the Vagrant Host operating system in use
# #
context "with a Solaris-like host" do context "on a Windows host" do
before do
Vagrant::Util::Platform.stub(windows?: true)
machine.ui.stub(:warn)
end
it "warns that Windows is not officially supported for the Ansible control machine" do
expect(machine.env.ui).to receive(:warn).with { |warning|
expect(warning).to eq(I18n.t("vagrant.provisioners.ansible.windows_not_supported_for_control_machine"))
}
end
end
context "on a Solaris-like host" do
before do before do
Vagrant::Util::Platform.stub(solaris?: true) Vagrant::Util::Platform.stub(solaris?: true)
end end