Skip to content

Commit

Permalink
Merge pull request #185 from theohbrothers/test/integration-improve-v…
Browse files Browse the repository at this point in the history
…arious-test-steps

Test (integration): Improve various test steps
  • Loading branch information
joeltimothyoh authored Sep 3, 2024
2 parents 0302d23 + 65e9ff9 commit 229bed4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 229bed4

Please sign in to comment.