Commit 9c7927f
fix(test): properly handle SystemExit in CLI spec
The test was using `rescue StandardError` which doesn't catch SystemExit
(a subclass of Exception, not StandardError). This caused unhandled exits
that propagated to RSpec, resulting in exit code 1 despite 0 test failures.
Changed to use RSpec's compound matcher `.to output().to_stdout.and raise_error(SystemExit)`
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent d4d46ce commit 9c7927f
1 file changed
+3
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
147 | 137 | | |
148 | 138 | | |
149 | 139 | | |
| |||
0 commit comments