Skip to content

Commit

Permalink
add test for current behavior in issue #131
Browse files Browse the repository at this point in the history
if we fix #131 then this would obviously go red and we'd need
 to fix it.

Signed-off-by: Lamont Granquist <[email protected]>
  • Loading branch information
lamont-granquist committed Jul 16, 2020
1 parent 6a2881a commit 6fded7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/mixlib/shellout/windows_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6fded7c

Please sign in to comment.