ticketmaster / poshspec

Infrastructure Testing DSL running in Pester
MIT License
183 stars 32 forks source link

Fixes #55 #65

Closed Glober777 closed 5 years ago

Glober777 commented 5 years ago

Fixes ticketmaster#55

Glober777 commented 5 years ago

Turns out that the prompt is coming from the Test-Path $_ part which turns into Test-Path after it goes through: https://github.com/ticketmaster/poshspec/blob/bcb172001fe5b649c2d6c170ee9fb32a3c4ca7dd/Private/Get-PoshspecParam.ps1#L94

Apparently, ExpandString method swallows the automatic variable.