From 90573f37b56ae45f4cbdfc39ee469dda4b2976a6 Mon Sep 17 00:00:00 2001 From: Jeremy Skinner Date: Thu, 14 Jun 2018 20:48:25 +0100 Subject: [PATCH] Remove ssh tests from posh-git --- test/Utils.Tests.ps1 | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/Utils.Tests.ps1 b/test/Utils.Tests.ps1 index eed18b71e..2a9a7ee84 100644 --- a/test/Utils.Tests.ps1 +++ b/test/Utils.Tests.ps1 @@ -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' {