fixed Environment-variables tests and typos in get-item

This commit is contained in:
Zachary Folwick 2015-07-16 15:52:42 -07:00
parent 489532736c
commit c8a6f4d783
2 changed files with 9 additions and 5 deletions

View file

@ -8,8 +8,12 @@ Describe "Test-Environment-Variables" {
}
It "Should be able to access the members of the environment variable in two ways" {
(Get-Item ENV:os).Value | Should Match 'Windows' -or 'Linux'
$env:os | Should Match 'Windows' -or '*nux'
(Get-Item ENV:HOME).Value | Should be "/root"
(Get-Item ENV:HOSTNAME).Value | Should Not BeNullOrEmpty
(Get-Item ENV:PATH).Value | Should Not BeNullOrEmpty
(ls ENV:HOME).Value | Should be "/root"
(ls ENV:HOSTNAME).Value | Should Not BeNullOrEmpty
(ls ENV:PATH).Value | Should Not BeNullOrEmpty
}
}
}

View file

@ -22,4 +22,4 @@ Describe "Test-Get-Item" {
(Get-Item /usr/bin) | Should Not BeNullOrEmpty
(Get-Item ..) | Should Not BeNullOrEmpty
}
}
}