I want to check whether a path has been added in windows %PATH% environment variable, using InSpec test in Chef. I'm not able to find any hints online.
describe command('echo %PATH%') do
its('stdout') { should match /C:\SoftwareX\bin/ }
end
It's not working. Appreciate any help!