Skip to content

Commit 2cfb0da

Browse files
justin808claude
andcommitted
Add debug_level stub to mock options object
The HTTPX::ErrorResponse constructor also calls options.debug_level during error logging. Add this stub to prevent the test from failing with: received unexpected message :debug_level with (no args) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 5d0c3af commit 2cfb0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react_on_rails_pro/spec/react_on_rails_pro/request_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
yielder.call("#{original_chunks[0]}\n")
248248
# Simulate connection error mid-stream by creating a mock error response
249249
# Create a minimal mock request object that satisfies the ErrorResponse constructor
250-
mock_options = instance_double(HTTPX::Options, timeout: {})
250+
mock_options = instance_double(HTTPX::Options, timeout: {}, debug_level: 0)
251251
mock_request = instance_double(
252252
HTTPX::Request,
253253
uri: URI(render_full_url),

0 commit comments

Comments
 (0)