Replace assert_empty with assert_equal using explicit literals
Due to overly aggressive detection by RuboCop Minitest, the distinction between `[]` and `{}` was uniformly replaced with `assert_empty`,
making it impossible to differentiate between them.
As a result of https://github.com/rubocop/rubocop-minitest/issues/344, where the `Minitest/AssertEmptyLiteral` cop was disabled,
the return value has been expressed using explicit literal forms.
This commit is contained in:
parent
5b04089e06
commit
a44799b262
1 changed files with 22 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue