diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-19 13:09:45 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-19 13:09:45 -0500 |
| commit | 2d026369b616e51199579ff039cc34be4d5c2ef9 (patch) | |
| tree | ce6dec37d9c725d2486a0587002bc2f958d85f39 | |
| parent | 1e65828d45d2209b23610111e03d088a5bd4b080 (diff) | |
| download | rulesets-2d026369b616e51199579ff039cc34be4d5c2ef9.tar.gz rulesets-2d026369b616e51199579ff039cc34be4d5c2ef9.zip | |
chore: remove project-specific references
- elisp-testing.md: generalized testutil description. The specific files
testutil-general.el / testutil-filesystem.el / testutil-org.el only
exist in one project; bundle should describe the pattern, not name
specific files.
- README.org: install examples use ~/code/ path to match actual layout.
| -rw-r--r-- | README.org | 4 | ||||
| -rw-r--r-- | languages/elisp/claude/rules/elisp-testing.md | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -31,9 +31,9 @@ Skills and generic rules apply to every Claude Code session on this machine. Copies a language-specific ruleset into a target project. Re-run to refresh. #+begin_src bash -make install-elisp PROJECT=~/projects/my-elisp-thing +make install-elisp PROJECT=~/code/my-elisp-thing # or, explicit: -make install-lang LANG=elisp PROJECT=~/projects/my-elisp-thing +make install-lang LANG=elisp PROJECT=~/code/my-elisp-thing make list-languages # show available bundles #+end_src diff --git a/languages/elisp/claude/rules/elisp-testing.md b/languages/elisp/claude/rules/elisp-testing.md index 6cb59b1..3883902 100644 --- a/languages/elisp/claude/rules/elisp-testing.md +++ b/languages/elisp/claude/rules/elisp-testing.md @@ -11,10 +11,10 @@ Use `ert-deftest` for all tests. One test = one scenario. ## File Layout -- `tests/test-<module>.el` — tests for `modules/<module>.el` +- `tests/test-<module>.el` — tests for `<module>.el` - `tests/test-<module>--<helper>.el` — tests for a specific private helper (matches `<module>--<helper>` function naming) -- `tests/testutil-<module>.el` — fixtures and mocks for one module -- `tests/testutil-general.el`, `testutil-filesystem.el`, `testutil-org.el` — cross-module helpers +- `tests/testutil-<module>.el` — fixtures and mocks scoped to one module +- `tests/testutil-*.el` — cross-module helpers (shared fixtures, generic mocks, filesystem helpers); name them for what they help with Tests must `(require 'module-name)` before the testutil file that stubs its internals, unless documented otherwise. Order matters — a testutil that defines a stub can be shadowed by a later `require` of the real module. |
