Skip to content

Commit

Permalink
Remove ssh tests from posh-git
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremySkinner committed Jun 14, 2018
1 parent 63a6fc5 commit 90573f3
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test/Utils.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,6 @@ New-Alias pscore C:\Users\Keith\GitHub\rkeithhill\PowerShell\src\powershell-win-
$nativeContent += "${newLine}${newLine}Import-Module posh-git"
$content -join $newLine | Should BeExactly $nativeContent
}
It 'Adds Start-SshAgent if posh-git is not installed' {
Add-PoshGitToProfile $profilePath -StartSshAgent

Test-Path -LiteralPath $profilePath | Should Be $true
$last = Get-Content $profilePath | Select-Object -Last 1
$last | Should BeExactly "Start-SshAgent -Quiet"
}
It 'Does not add Start-SshAgent if posh-git is installed' {
$profileContent = 'Import-Module posh-git'
Set-Content $profilePath -Value $profileContent

Add-PoshGitToProfile $profilePath -StartSshAgent

Test-Path -LiteralPath $profilePath | Should Be $true
$content = Get-Content $profilePath
$content | Should BeExactly $profileContent
}
}

Context 'Test-PoshGitImportedInScript Tests' {
Expand Down

0 comments on commit 90573f3

Please sign in to comment.