We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bfd30a commit 52c2660Copy full SHA for 52c2660
test/socket/test_socket.rb
@@ -774,7 +774,7 @@ def test_resolurion_error_error_code
774
begin
775
Socket.getaddrinfo("example.com", 80, "AF_UNIX")
776
rescue => e
777
- assert_equal([Socket::EAI_FAMILY, Socket::EAI_FAIL].include?(e.error_code), true)
+ assert_include([Socket::EAI_FAMILY, Socket::EAI_FAIL], e.error_code)
778
end
779
780
0 commit comments