Permalink
Browse files

looks like some variables will always leak, but essentially this fixes

…#9. will leave scoping of functions for now.
  • Loading branch information...
scottmuc committed Jan 13, 2013
1 parent e7cc6f7 commit bf3afbf330808cfee8a26665a77c9388ae432286
Showing with 3 additions and 2 deletions.
  1. +2 −1 Functions/It.Tests.ps1
  2. +1 −1 ObjectAdaptations/types.ps1xml
View
@@ -16,7 +16,8 @@ Describe -Tags "It" "It" {
It "does not pollute the global namespace" {
$extra_keys = List-ExtraKeys $pester.starting_variables $(Get-VariableAsHash)
- $extra_keys | Write-Host
+ $expected_keys = "here", "name", "test", "Matches", "fixture"
+ $extra_keys.should.have_count_of($extra_keys.Count)
}
}
@@ -49,7 +49,7 @@
$this.actual = $newactual
} -PassThru
$object.ThisValue = $value
-
+
return $object
</GetScriptBlock>
</ScriptProperty>

0 comments on commit bf3afbf

Please sign in to comment.