diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2017-02-01 18:55:13 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-07-16 12:07:36 -0700 |
commit | 6fded7cfaeb4eb1966579c18b9d39d2cb8bee2c6 (patch) | |
tree | 63ced72af3db03e5f7aed06cda01290ed7e66807 | |
parent | 6a2881a025bce21ed795eeeb53ba0a4fc7685349 (diff) | |
download | mixlib-shellout-lcg/issue-131.tar.gz |
add test for current behavior in issue #131lcg/issue-131
if we fix #131 then this would obviously go red and we'd need
to fix it.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | spec/mixlib/shellout/windows_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |