2016-03-04 23:48:30 +01:00
|
|
|
Describe "Get-Location" {
|
2016-03-08 07:55:30 +01:00
|
|
|
$currentDirectory=[System.IO.Directory]::GetCurrentDirectory()
|
2015-07-15 19:15:39 +02:00
|
|
|
BeforeEach {
|
2016-03-08 07:55:30 +01:00
|
|
|
pushd $currentDirectory
|
2015-07-15 19:15:39 +02:00
|
|
|
}
|
|
|
|
|
2016-03-04 23:42:36 +01:00
|
|
|
AfterEach {
|
2016-03-04 23:52:27 +01:00
|
|
|
popd
|
2016-03-04 23:42:36 +01:00
|
|
|
}
|
2015-07-15 19:15:39 +02:00
|
|
|
|
|
|
|
It "Should list the output of the current working directory" {
|
2016-03-08 07:55:30 +01:00
|
|
|
|
|
|
|
(Get-Location).Path | Should Be $currentDirectory
|
2015-07-15 19:15:39 +02:00
|
|
|
}
|
|
|
|
|
2016-03-04 23:42:36 +01:00
|
|
|
It "Should do exactly the same thing as its alias" {
|
2016-03-04 23:52:27 +01:00
|
|
|
(pwd).Path | Should Be (Get-Location).Path
|
2015-07-15 19:15:39 +02:00
|
|
|
}
|
2015-07-24 19:38:51 +02:00
|
|
|
}
|