fixed a bug in final test to verify that we can get-content in different drives.

This commit is contained in:
Zachary Folwick
2015-09-18 18:32:21 -07:00
parent dabf16789d
commit da42c7680a
+5 -3
View File
@@ -87,16 +87,18 @@
Get-Content -Path $testPath -Tail 1 | Should Be $testString
}
It "Should return the last lines of a file using the Last alias" {
Get-Content -Path $testPath2 -Last 1 | Should Be $fifthline
}
It "Should be able to get content within a different drive" {
Set-Location env:
pushd env:
$expectedoutput = [Environment]::GetEnvironmentVariable("PATH");
{ Get-Content PATH } | Should Not Throw
Get-Content PATH | Should Be "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
Get-Content PATH | Should Be $expectedoutput
Set-Location /
popd
}
}