We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d571830 commit 35a17c2Copy full SHA for 35a17c2
test/mcp/client/http_test.rb
@@ -30,7 +30,9 @@ def test_raises_load_error_when_faraday_not_available
30
Http.any_instance.stubs(:require).with("faraday").raises(LoadError, "cannot load such file -- faraday")
31
32
error = assert_raises(LoadError) do
33
- client.send(:client) # Call the private method that triggers require_faraday!
+ # I picked #tools arbritarily.
34
+ # This should immediately try to instantiate the client and fail
35
+ client.tools
36
end
37
38
assert_includes(error.message, "The 'faraday' gem is required to use the MCP client HTTP transport")
0 commit comments