PowerShell/test/powershell/Get-Location.Tests.ps1
Andrew Schwartzmeyer 901160cb78 Fix Get-Location tests
These should never have passed.
2016-03-04 14:42:36 -08:00

17 lines
353 B
PowerShell

Describe "Get-Location" {
BeforeEach {
pushd $env:HOME
}
AfterEach {
popd
}
It "Should list the output of the current working directory" {
(Get-Location).Path | Should Be $env:HOME
}
It "Should do exactly the same thing as its alias" {
(pwd).Path | Should Be (Get-Location).Path
}
}