tests/claude-code: add rules tests
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
9bf54edf10
commit
bb35f07cc9
5 changed files with 54 additions and 0 deletions
20
tests/modules/programs/claude-code/rules-path.nix
Normal file
20
tests/modules/programs/claude-code/rules-path.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
programs.claude-code = {
|
||||
enable = true;
|
||||
rules = {
|
||||
test-rule = ./test-rule.md;
|
||||
inline-rule = ''
|
||||
# Inline Rule
|
||||
|
||||
This is an inline rule for testing.
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.claude/rules/test-rule.md
|
||||
assertFileContent home-files/.claude/rules/test-rule.md \
|
||||
${./test-rule.md}
|
||||
assertFileExists home-files/.claude/rules/inline-rule.md
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue