Skip to content

Commit 83f023e

Browse files
authored
Update GitTest.php
1 parent dd45e1e commit 83f023e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

addons/Spock/tests/GitTest.php

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ function compiles_commands()
1818
$git = new Git([], new DataSaved, $user);
1919

2020
$this->assertEquals([
21-
'git add one.txt',
22-
'git add two.txt',
21+
'git add \'one.txt\'',
22+
'git add \'two.txt\'',
2323
'git commit -m "Data saved by johnsmith"', # Action is the "pretty" version of the class name.
2424
], $git->commands());
2525
}
@@ -30,8 +30,8 @@ function commit_message_from_unauthenticated_user_contains_no_username()
3030
$git = new Git([], new DataSaved, null);
3131

3232
$this->assertEquals([
33-
'git add one.txt',
34-
'git add two.txt',
33+
'git add \'one.txt\'',
34+
'git add \'two.txt\'',
3535
'git commit -m "Data saved"',
3636
], $git->commands());
3737
}
@@ -45,8 +45,8 @@ function git_push_gets_appended_if_specified_in_config()
4545
$git = new Git(['git_push' => true], new DataSaved, $user);
4646

4747
$this->assertEquals([
48-
'git add one.txt',
49-
'git add two.txt',
48+
'git add \'one.txt\'',
49+
'git add \'two.txt\'',
5050
'git commit -m "Data saved by johnsmith"',
5151
'git push',
5252
], $git->commands());
@@ -65,8 +65,8 @@ function it_adds_commands_before_if_specified_in_config()
6565
$this->assertEquals([
6666
'echo one',
6767
'echo two',
68-
'git add one.txt',
69-
'git add two.txt',
68+
'git add \'one.txt\'',
69+
'git add \'two.txt\'',
7070
'git commit -m "Data saved by johnsmith"',
7171
], $git->commands());
7272
}
@@ -82,8 +82,8 @@ function it_adds_commands_after_if_specified_in_config()
8282
], new DataSaved, $user);
8383

8484
$this->assertEquals([
85-
'git add one.txt',
86-
'git add two.txt',
85+
'git add \'one.txt\'',
86+
'git add \'two.txt\'',
8787
'git commit -m "Data saved by johnsmith"',
8888
'echo one',
8989
'echo two',

0 commit comments

Comments
 (0)