From 65e9ff9fd893967ff74f26b3f0e7a2b674d5386b Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Tue, 3 Sep 2024 10:00:18 +0000 Subject: [PATCH] Test (integration): Improve various test steps --- .../PSRepositoryReleaseManager.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PSRepositoryReleaseManager/PSRepositoryReleaseManager.Tests.ps1 b/src/PSRepositoryReleaseManager/PSRepositoryReleaseManager.Tests.ps1 index d546a29..a38c509 100644 --- a/src/PSRepositoryReleaseManager/PSRepositoryReleaseManager.Tests.ps1 +++ b/src/PSRepositoryReleaseManager/PSRepositoryReleaseManager.Tests.ps1 @@ -16,7 +16,7 @@ Describe "PSRepositoryReleaseManager" -Tag 'Integration' { Get-Content -Path "$stdout" | Write-Host } It "Runs Invoke-Generate.ps1 with `$env:PROJECT_DIRECTORY" { - $env:PROJECT_DIRECTORY = "$(git rev-parse --show-toplevel)" + $env:PROJECT_DIRECTORY = git rev-parse --show-toplevel $stdout = ../Invoke-Generate.ps1 "Generate notes content:" | Write-Verbose @@ -31,7 +31,7 @@ Describe "PSRepositoryReleaseManager" -Tag 'Integration' { } It "Runs Invoke-Generate.ps1 with `$env:RELEASE_TAG_REF='branch'" { $env:RELEASE_TAG_REF = 'master' - git checkout -b 'master' 'HEAD' + git checkout -b master HEAD $stdout = ../Invoke-Generate.ps1 "Generate notes content:" | Write-Verbose