Skip to content

Commit 41d9e3e

Browse files
Adding 'git add' single quote test
1 parent 5ff106a commit 41d9e3e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/units/test_base.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def test_add
1616
create_file('test_add/test_file_2', 'content test_file_2')
1717
create_file('test_add/test_file_3', 'content test_file_3')
1818
create_file('test_add/test_file_4', 'content test_file_4')
19-
19+
create_file('test_add/test file with \' quote', 'content test_file_4')
20+
2021
assert(!git.status.added.assoc('test_file_1'))
2122

2223
# Adding a single file, usign String
@@ -33,10 +34,11 @@ def test_add
3334
assert(!git.status.added.assoc('test_file_4'))
3435

3536
# Adding multiple files, using Array
36-
git.add(['test_file_3','test_file_4'])
37+
git.add(['test_file_3','test_file_4', 'test file with \' quote'])
3738

3839
assert(git.status.added.assoc('test_file_3'))
3940
assert(git.status.added.assoc('test_file_4'))
41+
assert(git.status.added.assoc('test file with \' quote'))
4042

4143
git.commit('test_add commit #1')
4244

0 commit comments

Comments
 (0)