Commit 8696426
fix: Fix RuboCop violations and remove accidental dependency
- Fix RuboCop VerifiedDoubles violations by using proper test doubles
- Simplify test mocking approach to focus on intended behavior
- Remove accidental react-on-rails dependency from package.json that broke version checker tests
- Use receive_messages for cleaner multiple stub setup
- Fix test to properly verify package_json integration without over-mocking
The tests now correctly verify:
- Message deduplication works properly
- package_json gem integration works when available
- Fallback to direct npm commands works when needed
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent f9de71f commit 8696426
File tree
2 files changed
+6
-22
lines changed- spec/react_on_rails/generators
2 files changed
+6
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 95 | + | |
99 | 96 | | |
Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
99 | 90 | | |
100 | 91 | | |
101 | 92 | | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 93 | + | |
107 | 94 | | |
108 | 95 | | |
109 | 96 | | |
110 | 97 | | |
111 | 98 | | |
112 | | - | |
| 99 | + | |
113 | 100 | | |
114 | 101 | | |
115 | 102 | | |
| |||
0 commit comments