Skip to content

Commit 6295baa

Browse files
committed
fix(tests): replace customer name with generic fixture name
1 parent 1517499 commit 6295baa

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

tests/project_open.bats

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ setup() {
2222
"${ROOT}/wordpress/acme/site" \
2323
"${ROOT}/wordpress/beta/.git" \
2424
"${ROOT}/wordpress/beta/bedrock" \
25-
"${ROOT}/wordpress/clinimed/bedrock/.git" \
26-
"${ROOT}/wordpress/clinimed/trellis/.git"
25+
"${ROOT}/wordpress/itineris/bedrock/.git" \
26+
"${ROOT}/wordpress/itineris/trellis/.git"
2727

2828
# shell/aliases sources ${HOME}/.dotfiles/shell/os.sh, so point HOME at a
2929
# temp dir whose .dotfiles symlinks to this repo. That lets the suite run
@@ -42,10 +42,10 @@ teardown() {
4242
temp_del "${TEST_HOME}"
4343
}
4444

45-
@test "scan finds category/project dirs and excludes nested submodules" {
45+
@test "scan finds category/project dirs and excludes itineris submodules" {
4646
local out
4747
out="$(_project_open_scan | sed "s#^${ROOT}/##" | LC_ALL=C sort | tr '\n' ',')"
48-
assert_equal "${out}" "misc/khuey,mods/HoldFast,wordpress/acme,wordpress/beta,wordpress/clinimed,"
48+
assert_equal "${out}" "misc/khuey,mods/HoldFast,wordpress/acme,wordpress/beta,wordpress/itineris,"
4949
}
5050

5151
@test "po_refresh creates the cache file" {
@@ -105,9 +105,9 @@ teardown() {
105105
assert_output "${ROOT}/wordpress/acme"
106106
}
107107

108-
@test "resolve maps a nested-git project (no root .git) to its path" {
109-
run _project_open_resolve clinimed
110-
assert_output "${ROOT}/wordpress/clinimed"
108+
@test "resolve maps a itineris-git project (no root .git) to its path" {
109+
run _project_open_resolve itineris
110+
assert_output "${ROOT}/wordpress/itineris"
111111
}
112112

113113
@test "resolve of an unknown name is empty" {
@@ -119,7 +119,7 @@ teardown() {
119119
po_refresh
120120
local out
121121
out="$(_project_open_projects | LC_ALL=C sort | tr '\n' ',')"
122-
assert_equal "${out}" "HoldFast,acme,beta,clinimed,khuey,"
122+
assert_equal "${out}" "HoldFast,acme,beta,itineris,khuey,"
123123
}
124124

125125
@test "targets lists a project's subdirs" {
@@ -168,11 +168,11 @@ teardown() {
168168
assert_equal "${dir}" "${ROOT}/wordpress/acme/site"
169169
}
170170

171-
@test "project_open descends into bedrock for a nested-git project" {
171+
@test "project_open descends into bedrock for a itineris-git project" {
172172
po_refresh
173173
local dir
174-
dir="$(cd / && project_open clinimed >/dev/null 2>&1 && pwd)"
175-
assert_equal "${dir}" "${ROOT}/wordpress/clinimed/bedrock"
174+
dir="$(cd / && project_open itineris >/dev/null 2>&1 && pwd)"
175+
assert_equal "${dir}" "${ROOT}/wordpress/itineris/bedrock"
176176
}
177177

178178
@test "project_open <name> <subdir> cds into the subdir" {

0 commit comments

Comments
 (0)