Skip to content

Commit

Permalink
Make remote completion test less brittle
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlbyk committed Feb 28, 2017
1 parent 67314bd commit 098b115
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/TabExpansion.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ Describe 'TabExpansion Tests' {
git branch -q master origin/master 2>$null
}
It 'Tab completes all remotes' {
(git remote) -contains 'origin' | Should Be $true

$result = & $module GitTabExpansionInternal 'git push '
$result | Should BeExactly (git remote)
$result -contains 'origin' | Should Be $true
}
It 'Tab completes all branches' {
$result = & $module GitTabExpansionInternal 'git push origin '
Expand Down

0 comments on commit 098b115

Please sign in to comment.