Skip to content

Commit

Permalink
PSv2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwyatt committed Feb 6, 2016
1 parent c1dc411 commit 1943cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Functions/TestsRunningInCleanRunspace.Tests.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function Invoke-PesterInJob ($ScriptBlock, [switch] $GenerateNUnitReport)
{
$PesterPath = $ExecutionContext.SessionState.Module.ModuleBase
$PesterPath = Get-Module Pester | Select-Object -First 1 -ExpandProperty Path

$job = Start-Job {
param ($PesterPath, $TestDrive, $ScriptBlock, $GenerateNUnitReport)
Expand Down

0 comments on commit 1943cdc

Please sign in to comment.