File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed
library/socket/unixsocket/shared Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change 3030 end
3131
3232 platform_is :windows do
33- it "emulates abstract sockets with a temporary file" do
33+ it "emulates abstract sockets with a temporary file with a path " do
3434 @s1 . path . match? ( /\\ AppData\\ Local\\ Temp\\ \d +-\d +\. \( \$ \) \z / ) . should be_true
35- @s1 . peeraddr . should == [ "AF_UNIX" , @s1 . path ]
36- @s1 . addr . should == [ "AF_UNIX" , @s1 . path ]
3735
3836 @s2 . path . should == @s1 . path
39- @s2 . addr . should == @s1 . addr
40- @s2 . peeraddr . should == @s1 . peeraddr
37+ @s1 . addr . should == [ "AF_UNIX" , @s1 . path ]
38+ @s2 . peeraddr . should == [ "AF_UNIX" , @s1 . path ]
4139 end
4240
43- it "sets the socket paths to empty Strings" do
44- @s1 . path . should == ""
45- @s2 . path . should == ""
41+ it "sets the peer address of first socket to an empty string" do
42+ @s1 . peeraddr . should == [ "AF_UNIX" , "" ]
4643 end
4744
48- it "sets the socket addresses to empty Strings" do
49- @s1 . addr . should == [ "AF_UNIX" , "" ]
45+ it "sets the address of second socket to an empty string" do
5046 @s2 . addr . should == [ "AF_UNIX" , "" ]
5147 end
52-
53- it "sets the socket peer addresses to empty Strings" do
54- @s1 . peeraddr . should == [ "AF_UNIX" , "" ]
55- @s2 . peeraddr . should == [ "AF_UNIX" , "" ]
56- end
5748 end
5849end
You can’t perform that action at this time.
0 commit comments