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