Fixed BaseDirectory tests by adding -c instead of positional argument (#4078)

This commit is contained in:
Aditya Patwardhan
2017-06-22 13:35:04 -07:00
committed by Jason Shirk
parent b65bc62934
commit 7491417bf9
@@ -88,14 +88,14 @@ Describe "Configuration file locations" -tags "CI","Slow" {
It @ItArgs "Profile should respect XDG_CONFIG_HOME" {
$env:XDG_CONFIG_HOME = $TestDrive
$expected = [IO.Path]::Combine($TestDrive, "powershell", $profileName)
& $powershell -noprofile `$PROFILE | Should Be $expected
& $powershell -noprofile -c `$PROFILE | Should Be $expected
}
It @ItArgs "PSModulePath should respect XDG_DATA_HOME" {
$env:PSModulePath = ""
$env:XDG_DATA_HOME = $TestDrive
$expected = [IO.Path]::Combine($TestDrive, "powershell", "Modules")
$actual = & $powershell -noprofile `$env:PSModulePath
$actual = & $powershell -noprofile -c `$env:PSModulePath
$actual | Should Match $expected
}