Commit eb16495
Address code review feedback for validation skip documentation (#1926)
Implements three improvements based on code review feedback:
1. Enhanced documentation with concrete testing example
- Added @example block showing how to clean up ENV in parallel tests
- Makes the thread safety guidance more actionable for developers
2. Improved test assertion specificity
- Added File.exist? spy assertion to verify short-circuit behavior
- Confirms ENV check truly returns early without file system access
3. Clarified ensure block cleanup order importance
- Added critical comment explaining why ENV cleanup must execute first
- Prevents ENV pollution if print_generator_messages raises exception
- Documents the intentional ordering for future maintainers
All tests pass and RuboCop reports no offenses.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 847edcd commit eb16495
File tree
3 files changed
+14
-0
lines changed- lib
- generators/react_on_rails
- react_on_rails
- spec/react_on_rails
3 files changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
| |||
0 commit comments