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
7272 response = @server . handle ( request )
7373 assert_equal (
7474 {
75- " jsonrpc" : "2.0" ,
76- "id" : "123" ,
77- " result" : { } ,
75+ jsonrpc : "2.0" ,
76+ id : "123" ,
77+ result : { } ,
7878 } ,
7979 response ,
8080 )
@@ -91,9 +91,9 @@ class ServerTest < ActiveSupport::TestCase
9191 response = JSON . parse ( @server . handle_json ( request ) , symbolize_names : true )
9292 assert_equal (
9393 {
94- " jsonrpc" : "2.0" ,
95- "id" : "123" ,
96- " result" : { } ,
94+ jsonrpc : "2.0" ,
95+ id : "123" ,
96+ result : { } ,
9797 } ,
9898 response ,
9999 )
@@ -111,18 +111,18 @@ class ServerTest < ActiveSupport::TestCase
111111 refute_nil response
112112
113113 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 } ,
122122 } ,
123- " serverInfo" : {
124- " name" : @server_name ,
125- " version" : "1.2.3" ,
123+ serverInfo : {
124+ name : @server_name ,
125+ version : "1.2.3" ,
126126 } ,
127127 } ,
128128 }
You can’t perform that action at this time.
0 commit comments