Merge pull request #237 from koic/replace_assert_empty_with_assert_equal_using_explicit_literals

Replace `assert_empty` with `assert_equal` using explicit literals
This commit is contained in:
Koichi ITO 2026-03-03 01:05:16 +09:00 • committed by GitHub
commit fa9f374d73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 22 deletions

View file

@ -33,7 +33,7 @@ module MCP
test "missing_required_arguments returns an empty array if no required arguments are missing" do
input_schema = InputSchema.new(properties: { message: { type: "string" } }, required: ["message"])
assert_empty input_schema.missing_required_arguments({ message: "Hello, world!" })
assert_equal([], input_schema.missing_required_arguments({ message: "Hello, world!" }))
end
test "valid schema initialization" do

View file

@ -107,7 +107,7 @@ module MCP
actual = response.to_h
assert_equal [:content, :isError, :structuredContent], actual.keys
assert_empty actual[:content]
assert_equal([], actual[:content])
assert_equal structured_content, actual[:structuredContent]
refute actual[:isError]
end
@ -118,7 +118,7 @@ module MCP
actual = response.to_h
assert_equal [:content, :isError, :structuredContent], actual.keys
assert_empty actual[:content]
assert_equal([], actual[:content])
assert_equal structured_content, actual[:structuredContent]
refute actual[:isError]
end