diff --git a/Generate-GitBranches.Tests.ps1 b/Generate-GitBranches.Tests.ps1 index 24fde215..6df7db42 100644 --- a/Generate-GitBranches.Tests.ps1 +++ b/Generate-GitBranches.Tests.ps1 @@ -35,12 +35,12 @@ Describe "Generate-GitBranches.ps1" { } } - It "Creates and updates branches of a same repo (dry-run) " { + It "Creates and updates branches of a same repo (dry-run)" { $currentRef = git rev-parse --short HEAD if ($LASTEXITCODE) { throw } - & ./Generate-GitBranches.ps1 -Repo . -Pull -ErrorAction Stop -WhatIf 6>$null # Create + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop -WhatIf 6>$null # Create git checkout $currentRef - & ./Generate-GitBranches.ps1 -Repo . -Pull -ErrorAction Stop -WhatIf 6>$null # Update + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop -WhatIf 6>$null # Update cd $sameRepo $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } @@ -50,9 +50,9 @@ Describe "Generate-GitBranches.ps1" { It "Creates and updates branches of a same repo" { $currentRef = git rev-parse --short HEAD if ($LASTEXITCODE) { throw } - & ./Generate-GitBranches.ps1 -Repo . -Pull -ErrorAction Stop 6>$null # Create + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop 6>$null # Create git checkout $currentRef - & ./Generate-GitBranches.ps1 -Repo . -Pull -ErrorAction Stop 6>$null # Update + & ./Generate-GitBranches.ps1 -Repo . -ErrorAction Stop 6>$null # Update cd $sameRepo $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } @@ -72,7 +72,7 @@ Describe "Generate-GitBranches.ps1" { It "Creates and updates branches of a same repo of (one game)" { & $sourceRepo/Generate-GitBranches.ps1 -Repo . -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Create - & $sourceRepo/Generate-GitBranches.ps1 -Repo . -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Update + & $sourceRepo/Generate-GitBranches.ps1 -Repo . -GamePlatform steam -GameEngine hlds -Game valve -Pull -ErrorAction Stop 6>$null # Update cd $sameRepo $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' } @@ -138,7 +138,7 @@ Describe "Generate-GitBranches.ps1" { It "Creates and updates branches of a different repo (one game)" { & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Create - & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -GamePlatform steam -GameEngine hlds -Game valve -ErrorAction Stop 6>$null # Update + & $sourceRepo/Generate-GitBranches.ps1 -Repo $differentRepo -GamePlatform steam -GameEngine hlds -Game valve -Pull -ErrorAction Stop 6>$null # Update cd $differentRepo $branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' }