turned repeated string into a variable

This commit is contained in:
Zachary Folwick
2015-08-25 10:15:21 -07:00
parent f919006d46
commit 1c1c1dacaa
@@ -18,10 +18,11 @@
}
It "Should be able to set the environment variables" {
{ $ENV:TESTENVIRONMENTVARIABLE = "this is a test environment variable" } | Should Not Throw
$expected = "this is a test environment variable"
{ $ENV:TESTENVIRONMENTVARIABLE = $expected } | Should Not Throw
$ENV:TESTENVIRONMENTVARIABLE | Should Not BeNullOrEmpty
$ENV:TESTENVIRONMENTVARIABLE | Should Be "this is a test environment variable"
$ENV:TESTENVIRONMENTVARIABLE | Should Be $expected
}