Permalink
Browse files

Merge branch 'master' of github.com:scottmuc/Pester

  • Loading branch information...
scottmuc committed Jul 31, 2011
2 parents 3f0aa3a + e541913 commit 37ad679407f3ea226023d8a4a8f39d7379f88e00
Showing with 3 additions and 0 deletions.
  1. +3 −0 Functions/Context.ps1
View
@@ -1,11 +1,14 @@
function Context($name, [ScriptBlock] $fixture) {
+ Setup
+
$results = Get-GlobalTestResults
$margin = " " * $results.TestDepth
$results.TestDepth += 1
Write-Host -fore yellow $margin $name
& $fixture
+
Cleanup
$results.TestDepth -= 1

0 comments on commit 37ad679

Please sign in to comment.