From 570ae9a387cd56d8b6f5766c6bb2573ecb64c87e Mon Sep 17 00:00:00 2001 From: Gilbert Sanchez Date: Tue, 26 May 2026 15:29:27 -0700 Subject: [PATCH] fix: use CultureInfo ctor instead of Get-Culture -Name for PS5.1 compat (#459) --- tests/Get-PlasterManifestPathForCulture.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Get-PlasterManifestPathForCulture.Tests.ps1 b/tests/Get-PlasterManifestPathForCulture.Tests.ps1 index 3ae9ad6..40be779 100644 --- a/tests/Get-PlasterManifestPathForCulture.Tests.ps1 +++ b/tests/Get-PlasterManifestPathForCulture.Tests.ps1 @@ -19,7 +19,7 @@ Describe 'Get-PlasterManifestPathForCulture' { Context "when given a template path and culture" { InModuleScope $env:BHProjectName { It "returns the manifest for the specified culture" { - $culture = Get-Culture -name "en-US" + $culture = New-Object System.Globalization.CultureInfo("en-US") $plasterManifestFilename = "plasterManifest_en-US.xml" Mock -CommandName 'Test-Path' -MockWith { $true } -ParameterFilter { $Path -like "*$($script:examplesPath)" } $manifestPath = Get-PlasterManifestPathForCulture -TemplatePath $script:examplesPath -Culture $culture