Skip to content

Commit 721f3a5

Browse files
committed
Fix incorrect test fixture
1 parent e585a2a commit 721f3a5

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

test/fixtures/nested-match-loss/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ docker compose build
1010
docker compose up -d
1111
```
1212

13-
### Database setup
13+
### Prepare schema
1414

1515
```bash
1616
rails db:migrate

test/hdi.bats

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,15 +1064,14 @@ else:
10641064
[ "$status" -eq 0 ]
10651065
# "Database setup" is a ### inside "Set up" that doesn't match keywords
10661066
# but should be preserved as a sub-heading group
1067-
[[ "$output" == *"### Database setup"* ]]
1067+
[[ "$output" == *"### Prepare schema"* ]]
10681068
[[ "$output" == *"rails db:migrate"* ]]
10691069
}
10701070

10711071
@test "nested-match: deeper matching heading also shown in all mode" {
10721072
run "$HDI" all --raw --ni "$FIXTURES/nested-match-loss"
10731073
[ "$status" -eq 0 ]
10741074
[[ "$output" == *"## Set up"* ]]
1075-
[[ "$output" == *"## Database setup"* ]]
10761075
[[ "$output" == *"## Prerequisites"* ]]
10771076
[[ "$output" == *"## Testing"* ]]
10781077
}

0 commit comments

Comments
 (0)