File tree Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Expand file tree Collapse file tree 9 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
@@ -245,14 +245,14 @@ try
245245 $original = Get-GitHubRepository - OrganizationName $script :organizationName
246246
247247 $repositoryName = [guid ]::NewGuid().Guid
248- $null = New-GitHubRepository - RepositoryName $repositoryName - OrganizationName $script :organizationName
248+ $repo = New-GitHubRepository - RepositoryName ([ guid ]::NewGuid().Guid) - OrganizationName $script :organizationName
249249 $current = Get-GitHubRepository - OrganizationName $script :organizationName
250250
251251 It ' Should return expected number of organization repositories' {
252252 (@ ($current ).Count - @ ($original ).Count) | Should be 1
253253 }
254254
255- $null = Remove-GitHubRepository - OwnerName $ script :organizationName - RepositoryName $repositoryName
255+ $null = Remove-GitHubRepository - Uri $repo .svn_url
256256 }
257257
258258 Describe ' Getting unique contributors from contributors array' {
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
Original file line number Diff line number Diff line change 77#>
88
99# This is common test code setup logic for all Pester test files
10- $moduleRootPath = Split-Path - Parent ( Split- Path - Parent $ Script :MyInvocation .MyCommand.Path )
10+ $moduleRootPath = Split-Path - Path $PSScriptRoot - Parent
1111. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
1212
1313try
You can’t perform that action at this time.
0 commit comments