From 6fded7cfaeb4eb1966579c18b9d39d2cb8bee2c6 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 1 Feb 2017 18:55:13 -0800 Subject: [PATCH] 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 10115608..c07ce71d 100644 --- a/spec/mixlib/shellout/windows_spec.rb +++ b/spec/mixlib/shellout/windows_spec.rb @@ -305,6 +305,11 @@ def self.with_command(cmd, filename: nil, search: false, directory: false, &exam 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