Merge pull request #640 from PowerShell/dev/jumping
Fixed Pester Get-Location test
This commit is contained in:
commit
5336083921
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
Describe "Get-Location" {
|
||||
$currentDirectory=[System.IO.Directory]::GetCurrentDirectory()
|
||||
BeforeEach {
|
||||
pushd $env:HOME
|
||||
pushd $currentDirectory
|
||||
}
|
||||
|
||||
AfterEach {
|
||||
|
@ -8,7 +9,8 @@ Describe "Get-Location" {
|
|||
}
|
||||
|
||||
It "Should list the output of the current working directory" {
|
||||
(Get-Location).Path | Should Be $env:HOME
|
||||
|
||||
(Get-Location).Path | Should Be $currentDirectory
|
||||
}
|
||||
|
||||
It "Should do exactly the same thing as its alias" {
|
||||
|
|
Loading…
Reference in a new issue