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 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
@@ -245,14 +245,14 @@ try
245
245
$original = Get-GitHubRepository - OrganizationName $script :organizationName
246
246
247
247
$repositoryName = [guid ]::NewGuid().Guid
248
- $null = New-GitHubRepository - RepositoryName $repositoryName - OrganizationName $script :organizationName
248
+ $repo = New-GitHubRepository - RepositoryName ([ guid ]::NewGuid().Guid) - OrganizationName $script :organizationName
249
249
$current = Get-GitHubRepository - OrganizationName $script :organizationName
250
250
251
251
It ' Should return expected number of organization repositories' {
252
252
(@ ($current ).Count - @ ($original ).Count) | Should be 1
253
253
}
254
254
255
- $null = Remove-GitHubRepository - OwnerName $ script :organizationName - RepositoryName $repositoryName
255
+ $null = Remove-GitHubRepository - Uri $repo .svn_url
256
256
}
257
257
258
258
Describe ' Getting unique contributors from contributors array' {
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
Original file line number Diff line number Diff line change 7
7
#>
8
8
9
9
# 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
11
11
. (Join-Path - Path $moduleRootPath - ChildPath ' Tests\Common.ps1' )
12
12
13
13
try
You can’t perform that action at this time.
0 commit comments