|
22 | 22 | Socket.unpack_sockaddr_in(sockaddr_in).should == [80, '0.0.0.0'] |
23 | 23 | end |
24 | 24 |
|
25 | | - platform_is_not :solaris do |
26 | | - it 'resolves the service name to a port' do |
27 | | - sockaddr_in = Socket.public_send(@method, 'http', '127.0.0.1') |
28 | | - Socket.unpack_sockaddr_in(sockaddr_in).should == [80, '127.0.0.1'] |
29 | | - end |
| 25 | + it 'resolves the service name to a port' do |
| 26 | + sockaddr_in = Socket.public_send(@method, 'http', '127.0.0.1') |
| 27 | + Socket.unpack_sockaddr_in(sockaddr_in).should == [80, '127.0.0.1'] |
30 | 28 | end |
31 | 29 |
|
32 | 30 | describe 'using an IPv4 address' do |
|
38 | 36 | end |
39 | 37 | end |
40 | 38 |
|
41 | | - platform_is_not :solaris do |
42 | | - describe 'using an IPv6 address' do |
43 | | - it 'returns a String of 28 bytes' do |
44 | | - str = Socket.public_send(@method, 80, '::1') |
| 39 | + describe 'using an IPv6 address' do |
| 40 | + it 'returns a String of 28 bytes' do |
| 41 | + str = Socket.public_send(@method, 80, '::1') |
45 | 42 |
|
46 | | - str.should be_an_instance_of(String) |
47 | | - str.bytesize.should == 28 |
48 | | - end |
49 | | - end |
50 | | - end |
51 | | - |
52 | | - platform_is :solaris do |
53 | | - describe 'using an IPv6 address' do |
54 | | - it 'returns a String of 32 bytes' do |
55 | | - str = Socket.public_send(@method, 80, '::1') |
56 | | - |
57 | | - str.should be_an_instance_of(String) |
58 | | - str.bytesize.should == 32 |
59 | | - end |
| 43 | + str.should be_an_instance_of(String) |
| 44 | + str.bytesize.should == 28 |
60 | 45 | end |
61 | 46 | end |
62 | 47 | end |
|
0 commit comments