File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ function compiles_commands()
18
18
$ git = new Git ([], new DataSaved , $ user );
19
19
20
20
$ this ->assertEquals ([
21
- 'git add one.txt ' ,
22
- 'git add two.txt ' ,
21
+ 'git add \' one.txt \' ' ,
22
+ 'git add \' two.txt \' ' ,
23
23
'git commit -m "Data saved by johnsmith" ' , # Action is the "pretty" version of the class name.
24
24
], $ git ->commands ());
25
25
}
@@ -30,8 +30,8 @@ function commit_message_from_unauthenticated_user_contains_no_username()
30
30
$ git = new Git ([], new DataSaved , null );
31
31
32
32
$ this ->assertEquals ([
33
- 'git add one.txt ' ,
34
- 'git add two.txt ' ,
33
+ 'git add \' one.txt \' ' ,
34
+ 'git add \' two.txt \' ' ,
35
35
'git commit -m "Data saved" ' ,
36
36
], $ git ->commands ());
37
37
}
@@ -45,8 +45,8 @@ function git_push_gets_appended_if_specified_in_config()
45
45
$ git = new Git (['git_push ' => true ], new DataSaved , $ user );
46
46
47
47
$ this ->assertEquals ([
48
- 'git add one.txt ' ,
49
- 'git add two.txt ' ,
48
+ 'git add \' one.txt \' ' ,
49
+ 'git add \' two.txt \' ' ,
50
50
'git commit -m "Data saved by johnsmith" ' ,
51
51
'git push ' ,
52
52
], $ git ->commands ());
@@ -65,8 +65,8 @@ function it_adds_commands_before_if_specified_in_config()
65
65
$ this ->assertEquals ([
66
66
'echo one ' ,
67
67
'echo two ' ,
68
- 'git add one.txt ' ,
69
- 'git add two.txt ' ,
68
+ 'git add \' one.txt \' ' ,
69
+ 'git add \' two.txt \' ' ,
70
70
'git commit -m "Data saved by johnsmith" ' ,
71
71
], $ git ->commands ());
72
72
}
@@ -82,8 +82,8 @@ function it_adds_commands_after_if_specified_in_config()
82
82
], new DataSaved , $ user );
83
83
84
84
$ this ->assertEquals ([
85
- 'git add one.txt ' ,
86
- 'git add two.txt ' ,
85
+ 'git add \' one.txt \' ' ,
86
+ 'git add \' two.txt \' ' ,
87
87
'git commit -m "Data saved by johnsmith" ' ,
88
88
'echo one ' ,
89
89
'echo two ' ,
You can’t perform that action at this time.
0 commit comments