Addressing feedback

This commit is contained in:
Riley Shott 2025-06-11 13:44:54 -07:00
commit 4d79263a87
2 changed files with 1 additions and 47 deletions

View file

@ -126,11 +126,5 @@ module MCP
assert_equal Methods::NOTIFICATIONS_PROMPTS_LIST_CHANGED, notifications[1][:method]
assert_equal Methods::NOTIFICATIONS_RESOURCES_LIST_CHANGED, notifications[2][:method]
end
test "notification method constants are defined correctly" do
assert_equal "notifications/tools/list_changed", Methods::NOTIFICATIONS_TOOLS_LIST_CHANGED
assert_equal "notifications/prompts/list_changed", Methods::NOTIFICATIONS_PROMPTS_LIST_CHANGED
assert_equal "notifications/resources/list_changed", Methods::NOTIFICATIONS_RESOURCES_LIST_CHANGED
end
end
end

View file

@ -28,22 +28,6 @@ module MCP
resources: [],
)
@transport = TestTransport.new(@server)
# Clear transports registry before each test
Transport.instance_variable_set(:@transports, nil)
end
teardown do
# Clear transports registry after each test
Transport.instance_variable_set(:@transports, nil)
end
test "registers transport class" do
Transport.register("test", TestTransport)
assert_equal TestTransport, Transport.get("test")
end
test "raises error for unknown transport" do
assert_raises(RuntimeError, "Transport unknown not found") { Transport.get("unknown") }
end
test "initializes with server instance" do