Skip to content

Small fix for PesterThrowFailureMessage#171

Merged
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:PesterThrowFailureMessageUpdate
Aug 1, 2014
Merged

Small fix for PesterThrowFailureMessage#171
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:PesterThrowFailureMessageUpdate

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Aug 1, 2014

The tests for #147 were failing in PowerShell 2.0 due to the presence of a leading blank line in the ErrorRecord's InvocationInfo.PositionMessage property. This update strips out any whitespace-only lines from PositionMessage before otherwise manipulating and using it in the output, which gets the tests working regardless of PowerShell version.

The tests for pester#147 were failing in PowerShell 2.0 due to the presence of a leading blank line in the ErrorRecord's InvocationInfo.PositionMessage property.  This update strips out any whitespace-only lines from PositionMessage before otherwise manipulating and using it in the output, which gets the tests working regardless of PowerShell version.
dlwyatt added a commit that referenced this pull request Aug 1, 2014
@dlwyatt dlwyatt merged commit ac844fa into pester:Beta Aug 1, 2014
@dlwyatt dlwyatt deleted the PesterThrowFailureMessageUpdate branch August 1, 2014 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant