Skip to content

Commit

Permalink
Remove splitting tags on whitespace (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd authored Jul 8, 2018
1 parent cf7e2d0 commit dddd6a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Functions/Gherkin.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function Invoke-Gherkin {
}
}

$pester = New-PesterState -TagFilter @($Tag -split "\s+") -ExcludeTagFilter ($ExcludeTag -split "\s") -TestNameFilter $ScenarioName -SessionState $PSCmdlet.SessionState -Strict $Strict -Show $Show -PesterOption $PesterOption |
$pester = New-PesterState -TagFilter $Tag -ExcludeTagFilter $ExcludeTag -TestNameFilter $ScenarioName -SessionState $PSCmdlet.SessionState -Strict $Strict -Show $Show -PesterOption $PesterOption |
& $SafeCommands["Add-Member"] -MemberType NoteProperty -Name Features -Value (& $SafeCommands["New-Object"] System.Collections.Generic.List[PSObject] ) -PassThru |
& $SafeCommands["Add-Member"] -MemberType ScriptProperty -Name FailedScenarios -PassThru -Value {
$Names = $this.TestResult | & $SafeCommands["Group-Object"] Describe |
Expand Down
2 changes: 1 addition & 1 deletion Pester.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ New-PesterOption

$script:mockTable = @{}
Remove-MockFunctionsAndAliases
$pester = New-PesterState -TestNameFilter $TestName -TagFilter ($Tag -split "\s") -ExcludeTagFilter ($ExcludeTag -split "\s") -SessionState $PSCmdlet.SessionState -Strict:$Strict -Show:$Show -PesterOption $PesterOption -RunningViaInvokePester
$pester = New-PesterState -TestNameFilter $TestName -TagFilter $Tag -ExcludeTagFilter $ExcludeTag -SessionState $PSCmdlet.SessionState -Strict:$Strict -Show:$Show -PesterOption $PesterOption -RunningViaInvokePester

try
{
Expand Down

0 comments on commit dddd6a0

Please sign in to comment.