Commit decc75e
Add closed? method stub to streaming test mocks
Fixes 9 failing tests in react_on_rails_pro_helper_spec.rb by adding
the closed? method stub to mocked streams. The production code now
checks response.stream.closed? for client disconnect detection, so
test mocks need to support this method.
Changes:
- Add closed? stub returning false to stream_view_containing_react_components tests
- Add closed? stub returning false to cached_stream_react_component tests
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Abanoub Ghadban <AbanoubGhadban@users.noreply.github.com>1 parent 763a9ff commit decc75e
File tree
1 file changed
+2
-0
lines changed- react_on_rails_pro/spec/dummy/spec/helpers
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
532 | 533 | | |
533 | 534 | | |
534 | 535 | | |
| 536 | + | |
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
| |||
0 commit comments