From 315655dbf3be57bc84089ff91b538b883fb6e54a Mon Sep 17 00:00:00 2001 From: Zachary Folwick Date: Fri, 2 Oct 2015 13:43:20 -0700 Subject: [PATCH] fixed typo in last test --- src/pester-tests/Test-Remove-Variable.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pester-tests/Test-Remove-Variable.Tests.ps1 b/src/pester-tests/Test-Remove-Variable.Tests.ps1 index cd51671744..b4fbb41483 100644 --- a/src/pester-tests/Test-Remove-Variable.Tests.ps1 +++ b/src/pester-tests/Test-Remove-Variable.Tests.ps1 @@ -182,12 +182,12 @@ Describe "Test-Remove-Variable" { $var1 | Should Be # Nothing } - It "Should be able to remove a global script variable that was created using the script scope switch" { + It "Should not be able to remove a global script variable that was created using the script scope switch" { New-Variable -Name var1 -Value "context" -Scope script Remove-Variable -Name var1 -Scope global -ErrorAction SilentlyContinue | Should Throw - $var1 | Should Be # Nothing + $var1 | Should Be "context" } } }