From e79f8974b55de2ef8135c3fad03860e8ad36dfb0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sun, 4 Jan 2026 15:39:31 +0100 Subject: [PATCH] Get better error if UNIXSocket.socketpair spec fails --- spec/ruby/library/socket/unixsocket/shared/pair.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ruby/library/socket/unixsocket/shared/pair.rb b/spec/ruby/library/socket/unixsocket/shared/pair.rb index 0f1af43b25..006863777a 100644 --- a/spec/ruby/library/socket/unixsocket/shared/pair.rb +++ b/spec/ruby/library/socket/unixsocket/shared/pair.rb @@ -31,7 +31,7 @@ describe :unixsocket_pair, shared: true do platform_is :windows do it "emulates unnamed sockets with a temporary file with a path" do - @s1.path.match?(/\\AppData\\Local\\Temp\\\d+-\d+\.\(\$\)\z/).should be_true + @s1.path.should.match?(/\\AppData\\Local\\Temp\\\d+-\d+\.\(\$\)\z/) @s1.addr.should == ["AF_UNIX", @s1.path] @s2.peeraddr.should == ["AF_UNIX", @s1.path] end