diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-03 21:32:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-03 21:32:09 -0500 |
| commit | 550c776159e52817efd8369c5de0d4448907dc1c (patch) | |
| tree | 3a65968202d4450491dd8bc675b98af58c878569 /modules/custom-buffer-file.el | |
| parent | 86a83c0be30314944b1fadeb74d1474f8b14f344 (diff) | |
| download | dotemacs-550c776159e52817efd8369c5de0d4448907dc1c.tar.gz dotemacs-550c776159e52817efd8369c5de0d4448907dc1c.zip | |
test: re-point projectile revert tests at the decision helper
The legacy `cj/--projectile-revert-on-fail` wrapper and `cj/--projectile-revert-state` global were removed when the closure-based revert refactor landed (commit 86a83c0). The corresponding tests in `test-dev-fkeys--projectile-revert-on-fail.el` and the around-revert / capture-cmd files still referenced the legacy symbols, so 7 tests had been failing on `main` since that commit.
I re-pointed each test at `cj/--projectile-revert-state-on-fail`, the pure decision helper that the closure-based hook delegates to. Each test now passes the captured `state` plist as an explicit argument instead of binding the old global. Test names updated to match the new target.
I dropped two tests that no longer have a target. `revert-on-fail-clears-state` was specific to the wrapper clearing the global on completion, and there is no global to clear now. `revert-on-fail-removes-itself` was specific to the wrapper removing itself from `compilation-finish-functions`. The closure-based hook removes itself differently and is covered by the buffer-local hook tests in `test-dev-fkeys--projectile-around-revert.el`.
The around-revert and capture-cmd tests also lost their `cj/--projectile-revert-state nil` let-bindings since that variable no longer exists.
21 projectile-related tests pass together.
Diffstat (limited to 'modules/custom-buffer-file.el')
0 files changed, 0 insertions, 0 deletions
