Commit c39127c
Fix: Properly stub ReactOnRailsPro module with configuration method
Fixed test failures caused by attempting to mock configuration on an
empty Module stub. The stubbed ReactOnRailsPro module now properly
implements the configuration getter/setter methods.
Changes:
- Created proper mock Pro module with working configuration methods
- Set configuration directly instead of using allow().to receive()
- Matches the real Pro gem's module structure
This fixes 4 test failures:
- returns private path when it exists even if public path also exists
- fallbacks to public path when private path does not exist and public path exists
- returns configured path if both private and public paths do not exist
- enforces private RSC bundles and never checks public directory
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent b4acd73 commit c39127c
1 file changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
251 | 263 | | |
252 | | - | |
253 | 264 | | |
254 | 265 | | |
| 266 | + | |
255 | 267 | | |
256 | 268 | | |
257 | 269 | | |
| |||
0 commit comments