Use txt files in tests
This commit is contained in:
parent
4969f9f2d3
commit
6fa9a8d91f
|
@ -872,39 +872,39 @@ git_auto_commit() {
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "expands file patterns correctly and commits all changed files" {
|
@test "expands file patterns correctly and commits all changed files" {
|
||||||
# Add more .md files
|
# Add more .txt files
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-1.md
|
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-1.txt
|
||||||
mkdir "${FAKE_LOCAL_REPOSITORY}"/subdirectory/
|
mkdir "${FAKE_LOCAL_REPOSITORY}"/subdirectory/
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/subdirectory/new-file-2.md
|
touch "${FAKE_LOCAL_REPOSITORY}"/subdirectory/new-file-2.txt
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-3.bar
|
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-3.bar
|
||||||
|
|
||||||
INPUT_FILE_PATTERN="*.md *.bar"
|
INPUT_FILE_PATTERN="*.txt *.bar"
|
||||||
|
|
||||||
run git_auto_commit
|
run git_auto_commit
|
||||||
|
|
||||||
assert_success
|
assert_success
|
||||||
|
|
||||||
assert_line --partial "new-file-1.md"
|
assert_line --partial "new-file-1.txt"
|
||||||
assert_line --partial "subdirectory/new-file-2.md"
|
assert_line --partial "subdirectory/new-file-2.txt"
|
||||||
assert_line --partial "new-file-3.bar"
|
assert_line --partial "new-file-3.bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
@test "expands file patterns correctly and commits all changed files when globbing is disabled" {
|
@test "expands file patterns correctly and commits all changed files when globbing is disabled" {
|
||||||
# Add more .md files
|
# Add more .txt files
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-1.md
|
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-1.txt
|
||||||
mkdir "${FAKE_LOCAL_REPOSITORY}"/subdirectory/
|
mkdir "${FAKE_LOCAL_REPOSITORY}"/subdirectory/
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/subdirectory/new-file-2.md
|
touch "${FAKE_LOCAL_REPOSITORY}"/subdirectory/new-file-2.txt
|
||||||
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-3.bar
|
touch "${FAKE_LOCAL_REPOSITORY}"/new-file-3.bar
|
||||||
|
|
||||||
INPUT_FILE_PATTERN="*.md *.bar"
|
INPUT_FILE_PATTERN="*.txt *.bar"
|
||||||
INPUT_DISABLE_GLOBBING=true
|
INPUT_DISABLE_GLOBBING=true
|
||||||
|
|
||||||
run git_auto_commit
|
run git_auto_commit
|
||||||
|
|
||||||
assert_success
|
assert_success
|
||||||
|
|
||||||
assert_line --partial "new-file-1.md"
|
assert_line --partial "new-file-1.txt"
|
||||||
assert_line --partial "subdirectory/new-file-2.md"
|
assert_line --partial "subdirectory/new-file-2.txt"
|
||||||
assert_line --partial "new-file-3.bar"
|
assert_line --partial "new-file-3.bar"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue