Browse files

making switch conform to naming standard

  • Loading branch information...
1 parent e6cbe7e commit e58e7418a84ea01290d927110cab0305b86ad0ab @scottmuc scottmuc committed Feb 3, 2013
Showing with 7 additions and 3 deletions.
  1. +4 −0 CHANGELOG.md
  2. +3 −3 Pester.psm1
View
4 CHANGELOG.md
@@ -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
View
6 Pester.psm1
@@ -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
}

0 comments on commit e58e741

Please sign in to comment.