Files
PowerShell/test/powershell/Get-Location.Tests.ps1
T

17 lines
350 B
PowerShell
Raw Normal View History

2016-03-04 14:48:30 -08:00
Describe "Get-Location" {
2015-07-15 10:15:39 -07:00
BeforeEach {
2016-03-04 14:42:36 -08:00
pushd $env:HOME
2015-07-15 10:15:39 -07:00
}
2016-03-04 14:42:36 -08:00
AfterEach {
popd
}
2015-07-15 10:15:39 -07:00
It "Should list the output of the current working directory" {
2016-03-04 14:42:36 -08:00
(Get-Location).Path | Should Be $env:HOME
2015-07-15 10:15:39 -07:00
}
2016-03-04 14:42:36 -08:00
It "Should do exactly the same thing as its alias" {
(pwd).Path | Should Be (Get-Location).Path
2015-07-15 10:15:39 -07:00
}
2015-07-24 10:38:51 -07:00
}