ralph-claude-code/tests/unit
Test User 627ad7d9a5 fix: extract denied commands from correct JSON path (Issue #143)
The permission_denials array from Claude CLI has commands nested under
tool_input.command, not directly as .command:

Before: jq '[.permission_denials[].command]'
After:  jq '[.permission_denials[].tool_input.command]'

This fixes the "Permission denied for N command(s)" message to actually
display the denied commands instead of showing empty/unknown.

Also updated test fixture to match real Claude CLI output structure.
2026-02-01 13:43:47 -07:00
..
test_cli_modern.bats fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
test_cli_parsing.bats fix(setup): create .ralphrc with consistent tool permissions (#137) 2026-01-28 21:10:02 -07:00
test_enable_core.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_exit_detection.bats feat(exit): detect permission denials and halt loop (Issue #101) (#142) 2026-01-29 23:17:16 -07:00
test_json_parsing.bats fix: extract denied commands from correct JSON path (Issue #143) 2026-02-01 13:43:47 -07:00
test_ralph_enable.bats refactor(naming): remove @ prefix from on-disk filenames (#131) 2026-01-26 15:40:27 -07:00
test_rate_limiting.bats feat(structure): migrate Ralph files to .ralph/ subfolder (#109) 2026-01-20 23:22:30 -07:00
test_session_continuity.bats fix(test): ensure RESPONSE_ANALYSIS_FILE is set before use in test 199 (#133) 2026-01-27 09:32:47 -07:00
test_task_sources.bats feat(enable): add ralph-enable wizard for existing projects (v0.11.0) (#124) 2026-01-25 14:37:25 -07:00
test_wizard_utils.bats fix(wizard): redirect prompts to stderr for clean command substitution (#130) 2026-01-26 14:47:06 -07:00