Skip to content

Commit

Permalink
Add test for one-line profile without posh-git
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk authored and rkeithhill committed Jan 26, 2017
1 parent 29c355b commit 5628cc1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/Utils.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ New-Alias pscore C:\Users\Keith\GitHub\rkeithhill\PowerShell\src\powershell-win-
Set-Content $profilePath -Value $profileContent -Encoding Unicode
Test-PoshGitImportedInScript $profilePath | Should Be $true
}
It 'Returns false when one-line profile script does not import posh-git' {
$profileContent = "# Test"
Set-Content $profilePath -Value $profileContent -Encoding Unicode
Test-PoshGitImportedInScript $profilePath | Should Be $false
}
It 'Returns false when profile script does not import posh-git' {
$profileContent = "Import-Module Pscx`nImport-Module platyPS`nImport-Module Plaster"
Set-Content $profilePath -Value $profileContent -Encoding Unicode
Expand Down

0 comments on commit 5628cc1

Please sign in to comment.