From 6fded7cfaeb4eb1966579c18b9d39d2cb8bee2c6 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 1 Feb 2017 18:55:13 -0800 Subject: add test for current behavior in issue #131 if we fix #131 then this would obviously go red and we'd need to fix it. Signed-off-by: Lamont Granquist --- spec/mixlib/shellout/windows_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/mixlib/shellout/windows_spec.rb b/spec/mixlib/shellout/windows_spec.rb index 1011560..c07ce71 100644 --- a/spec/mixlib/shellout/windows_spec.rb +++ b/spec/mixlib/shellout/windows_spec.rb @@ -305,6 +305,11 @@ describe "Mixlib::ShellOut::Windows", :windows_only do with_command("copy thing1.txt thing2.txt", search: true) do is_expected.to eql([ comspec, 'cmd /c "copy thing1.txt thing2.txt"' ]) end + + # FIXME: seems this is wrong? https://github.com/chef/mixlib-shellout/issues/131 + with_command("echo %^COMPUTERNAME%", search: true) do + is_expected.to eql([ comspec, 'cmd /c "echo %^COMPUTERNAME%"' ]) + end end end -- cgit v1.2.1