File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,10 @@ Describe "Settings Class" {
51
51
${settings} .${Name}.Count | Should - Be 0
52
52
}
53
53
54
- It " Should be able to parse empty settings hashtable" {
55
- Invoke-ScriptAnalyzer - ScriptDefinition ' gci' - Settings @ { ExcludeRules = @ ()} | Should -Not - BeNullOrEmpty
56
- Invoke-ScriptAnalyzer - ScriptDefinition ' gci' - Settings ' @{ ExcludeRules = @()}' | Should -Not - BeNullOrEmpty
54
+ It " Should be able to parse empty settings hashtable from settings file" {
55
+ $testPSSASettingsFilePath = " TestDrive:\PSSASettings.psd1"
56
+ Set-Content $testPSSASettingsFilePath - Value ' @{ExcludeRules = @()}'
57
+ Invoke-ScriptAnalyzer - ScriptDefinition ' gci' - Settings $testPSSASettingsFilePath | Should -Not - BeNullOrEmpty
57
58
}
58
59
}
59
60
You can’t perform that action at this time.
0 commit comments