2016-03-04 14:48:30 -08:00
|
|
|
Describe "Get-Location" {
|
2015-07-15 10:15:39 -07:00
|
|
|
BeforeEach {
|
2016-03-04 14:52:27 -08:00
|
|
|
pushd $env:HOME
|
2015-07-15 10:15:39 -07:00
|
|
|
}
|
|
|
|
|
|
2016-03-04 14:42:36 -08:00
|
|
|
AfterEach {
|
2016-03-04 14:52:27 -08:00
|
|
|
popd
|
2016-03-04 14:42:36 -08:00
|
|
|
}
|
2015-07-15 10:15:39 -07:00
|
|
|
|
|
|
|
|
It "Should list the output of the current working directory" {
|
2016-03-04 14:52:27 -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" {
|
2016-03-04 14:52:27 -08:00
|
|
|
(pwd).Path | Should Be (Get-Location).Path
|
2015-07-15 10:15:39 -07:00
|
|
|
}
|
2015-07-24 10:38:51 -07:00
|
|
|
}
|