Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

making switch conform to naming standard

  • Loading branch information...
commit e58e7418a84ea01290d927110cab0305b86ad0ab 1 parent e6cbe7e
Scott Muc scottmuc authored
Showing with 7 additions and 3 deletions.
  1. +4 −0 CHANGELOG.md
  2. +3 −3 Pester.psm1
4 CHANGELOG.md
View
@@ -1,3 +1,7 @@
+## 2.0.1 (Feb 3, 2012)
+
+ - Renamed -EnableLegacyAssertions to -EnableLegacyExpectations
+
## 2.0.0 (Feb 2, 2012)
- Functioanlity equivalent to 1.2.0 except legacy assertions disabled by
6 Pester.psm1
View
@@ -89,15 +89,15 @@ about_pester
[string]$OutputXml = '',
[Parameter(Position=4,Mandatory=0)]
[string]$Tags = $null,
- [switch]$EnableLegacyAssertions = $false
+ [switch]$EnableLegacyExpectations = $false
)
$pester = @{}
$pester.starting_variables = Get-VariableAsHash
Reset-GlobalTestResults
- if ($EnableLegacyAssertions) {
- "Legacy assertion style enabled" | Write-Host
+ if ($EnableLegacyExpectations) {
+ "WARNING: Enabling deprecated legacy expectations. " | Write-Host -Fore Yellow
. "$PSScriptRoot\ObjectAdaptations\PesterFailure.ps1"
Update-TypeData -pre "$PSScriptRoot\ObjectAdaptations\types.ps1xml" -ErrorAction SilentlyContinue
}
Please sign in to comment.
Something went wrong with that request. Please try again.