Commit bb20cd7
Fix: Update RSC bundle tests to mock Pro configuration correctly
Fixed 3 test failures in utils_spec.rb that were caused by mocking
non-existent ReactOnRails.configuration.rsc_bundle_js_file.
Changes:
- Updated tests to mock ReactOnRailsPro.configuration instead
- Added proper Pro gem presence mocking with stub_const
- Tests now correctly verify open-source bundle_js_file_path behavior
when RSC bundles are present with Pro gem installed
- Applied RuboCop auto-corrections for style compliance
The open-source bundle_js_file_path function correctly handles RSC bundles
by checking Pro configuration (lines 117-121 in utils.rb), so these tests
ensure that behavior works as expected.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 18d19eb commit bb20cd7
1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
247 | 257 | | |
248 | 258 | | |
249 | 259 | | |
250 | | - | |
251 | | - | |
252 | 260 | | |
253 | 261 | | |
254 | 262 | | |
| |||
283 | 291 | | |
284 | 292 | | |
285 | 293 | | |
286 | | - | |
287 | | - | |
288 | 294 | | |
289 | 295 | | |
290 | 296 | | |
| |||
0 commit comments