2015-07-21 16:05:43 -07:00
|
|
|
Describe "Test-Environment-Variables" {
|
2015-07-15 10:15:39 -07:00
|
|
|
It "Should have environment variable" {
|
|
|
|
|
Get-Item ENV: | Should Not BeNullOrEmpty
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
It "Should be able to access the members of the environment variable in two ways" {
|
2015-07-16 15:52:42 -07:00
|
|
|
(Get-Item ENV:HOME).Value | Should be "/root"
|
2015-07-24 10:38:51 -07:00
|
|
|
(Get-Item ENV:HOSTNAME).Value | Should Not BeNullOrEmpty
|
|
|
|
|
(Get-Item ENV:PATH).Value | Should Not BeNullOrEmpty
|
2015-07-16 15:52:42 -07:00
|
|
|
|
|
|
|
|
(ls ENV:HOME).Value | Should be "/root"
|
2015-07-24 10:38:51 -07:00
|
|
|
(ls ENV:HOSTNAME).Value | Should Not BeNullOrEmpty
|
|
|
|
|
(ls ENV:PATH).Value | Should Not BeNullOrEmpty
|
2015-07-15 10:15:39 -07:00
|
|
|
}
|
2015-07-16 15:52:42 -07:00
|
|
|
}
|