Skip to content

Commit 4381378

Browse files
Merge pull request #44 from PowershellFrameworkCollective/development
Bugfix release
2 parents c63c309 + c548608 commit 4381378

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

PSModuleDevelopment/PSModuleDevelopment.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
RootModule = 'PSModuleDevelopment.psm1'
55

66
# Version number of this module.
7-
ModuleVersion = '2.2.5.27'
7+
ModuleVersion = '2.2.5.28'
88

99
# ID used to uniquely identify this module
1010
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'

PSModuleDevelopment/PSModuleDevelopment.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
$script:PSModuleRoot = $PSScriptRoot
2-
$script:PSModuleVersion = "2.2.5.27"
2+
$script:PSModuleVersion = "2.2.5.28"
33

44
$script:doDotSource = $false
55
if (Get-PSFConfigValue -FullName PSModuleDevelopment.Import.DoDotSource) { $script:doDotSource = $true }

PSModuleDevelopment/changelog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
2+
## 2.2.5.28 (September 08th, 2018)
3+
- Fix: Template CommandTest would throw an exception due to missing quotes on a string index
4+
25
## 2.2.5.27 (September 08th, 2018)
36
- Fix: Fixes in the build task
47

templates/CommandTest/þnameþ.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313

1414
þ{
1515
$lines = @()
16-
$commonParameters = 'Verbose', 'Debug', 'ErrorAction', 'WarningAction', 'InformationAction', 'ErrorVariable', 'WarningVariable', 'InformationVariable', 'OutVariable', 'OutBuffer', 'PipelineVariable'
16+
$commonParameters = 'Verbose', 'Debug', 'ErrorAction', 'WarningAction', 'InformationAction', 'ErrorVariable', 'WarningVariable', 'InformationVariable', 'OutVariable', 'OutBuffer', 'PipelineVariable', 'Confirm', 'WhatIf'
1717
foreach ($parameter in ((Get-Command $Parameters.Name).Parameters.Values | Where-Object Name -NotIn $commonParameters))
1818
{
1919
$lines += " It 'Should habe the expected parameter $($parameter.Name)' {"
20-
$lines += " `$parameter = (Get-Command $($Parameters.Name)).Parameters[$($parameter.Name)]"
20+
$lines += " `$parameter = (Get-Command $($Parameters.Name)).Parameters['$($parameter.Name)']"
2121
$lines += " `$parameter.Name | Should -Be '$($parameter.Name)'"
2222
$lines += " `$parameter.ParameterType.ToString() | Should -Be $($parameter.ParameterType.ToString())"
2323
$lines += " `$parameter.IsDynamic | Should -Be `$$($parameter.IsDynamic)"
@@ -38,7 +38,7 @@
3838
}
3939

4040
þ{
41-
$commonParameters = 'Verbose', 'Debug', 'ErrorAction', 'WarningAction', 'InformationAction', 'ErrorVariable', 'WarningVariable', 'InformationVariable', 'OutVariable', 'OutBuffer', 'PipelineVariable'
41+
$commonParameters = 'Verbose', 'Debug', 'ErrorAction', 'WarningAction', 'InformationAction', 'ErrorVariable', 'WarningVariable', 'InformationVariable', 'OutVariable', 'OutBuffer', 'PipelineVariable', 'Confirm', 'WhatIf'
4242
foreach ($parameterSet in (Get-Command $Parameters.Name).ParameterSets)
4343
{
4444
$name = $parameterSet.Name

0 commit comments

Comments
 (0)