Fix hash format in tests

This commit is contained in:
Kevin Fischer 2025-06-14 16:44:35 +09:00
commit 222147014a
No known key found for this signature in database
GPG key ID: 8E4CB46A9AC8D1C1

View file

@ -72,9 +72,9 @@ module MCP
response = @server.handle(request)
assert_equal(
{
"jsonrpc": "2.0",
"id": "123",
"result": {},
jsonrpc: "2.0",
id: "123",
result: {},
},
response,
)
@ -91,9 +91,9 @@ module MCP
response = JSON.parse(@server.handle_json(request), symbolize_names: true)
assert_equal(
{
"jsonrpc": "2.0",
"id": "123",
"result": {},
jsonrpc: "2.0",
id: "123",
result: {},
},
response,
)
@ -111,18 +111,18 @@ module MCP
refute_nil response
expected_result = {
"jsonrpc": "2.0",
"id": 1,
"result": {
"protocolVersion": "2024-11-05",
"capabilities": {
"prompts": { listChanged: true },
"resources": { listChanged: true },
"tools": { listChanged: true },
jsonrpc: "2.0",
id: 1,
result: {
protocolVersion: "2024-11-05",
capabilities: {
prompts: { listChanged: true },
resources: { listChanged: true },
tools: { listChanged: true },
},
"serverInfo": {
"name": @server_name,
"version": "1.2.3",
serverInfo: {
name: @server_name,
version: "1.2.3",
},
},
}