8000 Fix Status test · PoshCode/PSGit@889e0ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 889e0ba

Browse files
committed
Fix Status test
1 parent 6cab071 commit 889e0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Status.Steps.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ Then "the status of git should be" {
399399

400400
for($f =0; $f -lt $Result.Count; $f++) {
401401
# Staged | Change | Path
402-
$R = $Result[$f] | Select-Object Staged, Changed, @{N="Path";E={$_.Path.Trim("\/")}}
402+
$R = $Result[$f] | Select-Object *, @{Name="Path"; Expr= {$_.Path.TrimEnd("\/")}} -ExcludeProperty Path
403403
$T = $Table[$f]
404404
if($T.OldPath) {
405405
$R | Must OldPath -eq $T.OldPath

0 commit comments

Comments
 (0)
0