File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ if(!(git config --get user.email)) {
7
7
BeforeEachScenario {
8
8
$script :repo = Convert-Path TestDrive:/
9
9
Push-Location TestDrive:/
10
+ Remove-Item ../ git.log - ErrorAction SilentlyContinue
10
11
[Environment ]::CurrentDirectory = $repo
11
12
Remove-Item TestDrive:/* - Recurse - Force - ErrorAction SilentlyContinue
12
13
}
@@ -70,14 +71,14 @@ function global:ProcessGitActions($table) {
70
71
71
72
git push
72
73
73
- } 2>> ../ git.log
74
+ } - ErrorAction SilentlyContinue 2>> ../ git.log
74
75
}
75
76
" Branched" {
76
77
& {[CmdletBinding ()]param ()
77
78
78
79
git checkout - b $change.Name
79
80
80
- } 2>> ../ git.log
81
+ } - ErrorAction SilentlyContinue 2>> ../ git.log
81
82
}
82
83
" Reset" {
83
84
git reset -- hard $change.Name
@@ -398,12 +399,12 @@ Then "the status of git should be" {
398
399
399
400
for ($f = 0 ; $f -lt $Result.Count ; $f ++ ) {
400
401
# Staged | Change | Path
401
- $R = $Result [$f ]
402
+ $R = $Result [$f ] | Select-Object Staged , Changed , @ { N = " Path " ; E = { $_ .Path.Trim ( " \/ " )}}
402
403
$T = $Table [$f ]
403
404
if ($T.OldPath ) {
404
405
$R | Must OldPath -eq $T.OldPath
405
406
}
406
- $R | Must Path -eq ( $T.Path.ToString ().Trim( " \/ " ))
407
+ $R | Must Path -eq $T.Path
407
408
$R | Must Staged -eq ($T.Staged -eq " True" )
408
409
$R | Must Change -eq $T.Change
409
410
You can’t perform that action at this time.
0 commit comments