File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -72,9 +72,9 @@ class ServerTest < ActiveSupport::TestCase
72
72
response = @server . handle ( request )
73
73
assert_equal (
74
74
{
75
- " jsonrpc" : "2.0" ,
76
- "id" : "123" ,
77
- " result" : { } ,
75
+ jsonrpc : "2.0" ,
76
+ id : "123" ,
77
+ result : { } ,
78
78
} ,
79
79
response ,
80
80
)
@@ -91,9 +91,9 @@ class ServerTest < ActiveSupport::TestCase
91
91
response = JSON . parse ( @server . handle_json ( request ) , symbolize_names : true )
92
92
assert_equal (
93
93
{
94
- " jsonrpc" : "2.0" ,
95
- "id" : "123" ,
96
- " result" : { } ,
94
+ jsonrpc : "2.0" ,
95
+ id : "123" ,
96
+ result : { } ,
97
97
} ,
98
98
response ,
99
99
)
@@ -111,18 +111,18 @@ class ServerTest < ActiveSupport::TestCase
111
111
refute_nil response
112
112
113
113
expected_result = {
114
- " jsonrpc" : "2.0" ,
115
- "id" : 1 ,
116
- " result" : {
117
- " protocolVersion" : "2024-11-05" ,
118
- " capabilities" : {
119
- " prompts" : { listChanged : true } ,
120
- " resources" : { listChanged : true } ,
121
- " tools" : { listChanged : true } ,
114
+ jsonrpc : "2.0" ,
115
+ id : 1 ,
116
+ result : {
117
+ protocolVersion : "2024-11-05" ,
118
+ capabilities : {
119
+ prompts : { listChanged : true } ,
120
+ resources : { listChanged : true } ,
121
+ tools : { listChanged : true } ,
122
122
} ,
123
- " serverInfo" : {
124
- " name" : @server_name ,
125
- " version" : "1.2.3" ,
123
+ serverInfo : {
124
+ name : @server_name ,
125
+ version : "1.2.3" ,
126
126
} ,
127
127
} ,
128
128
}
You can’t perform that action at this time.
0 commit comments