mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@875a09e
This commit is contained in:
parent
a06301b103
commit
5c276e1cc9
1247 changed files with 5316 additions and 5028 deletions
|
@ -113,25 +113,25 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises TypeError when using a numeric string as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :IGMP, Socket::SCM_RIGHTS.to_s, '')
|
||||
}.should raise_error(TypeError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :RECVTTL as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :SOCKET, :RECVTTL, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :MOO as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :SOCKET, :MOO, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :IP_RECVTTL as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :SOCKET, :IP_RECVTTL, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -155,13 +155,13 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises SocketError when using :RIGHTS as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :IP, :RIGHTS, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :MOO as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :IP, :MOO, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -179,13 +179,13 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises SocketError when using :RIGHTS as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :IPV6, :RIGHTS, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :MOO as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :IPV6, :MOO, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -205,13 +205,13 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises SocketError when using :RIGHTS as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :TCP, :RIGHTS, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :MOO as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :TCP, :MOO, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -225,13 +225,13 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises SocketError when using :RIGHTS as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :UDP, :RIGHTS, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
||||
it 'raises SocketError when using :MOO as the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:INET, :UDP, :MOO, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -243,7 +243,7 @@ with_feature :ancillary_data do
|
|||
end
|
||||
|
||||
it 'raises SocketError when using :CORK sa the type argument' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:UNIX, :SOCKET, :CORK, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -251,7 +251,7 @@ with_feature :ancillary_data do
|
|||
|
||||
describe 'using :AF_UNIX as the family and :IP as the level' do
|
||||
it 'raises SocketError' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:UNIX, :IP, :RECVTTL, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -259,7 +259,7 @@ with_feature :ancillary_data do
|
|||
|
||||
describe 'using :AF_UNIX as the family and :IPV6 as the level' do
|
||||
it 'raises SocketError' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:UNIX, :IPV6, :NEXTHOP, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -267,7 +267,7 @@ with_feature :ancillary_data do
|
|||
|
||||
describe 'using :AF_UNIX as the family and :TCP as the level' do
|
||||
it 'raises SocketError' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:UNIX, :TCP, :CORK, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
@ -275,7 +275,7 @@ with_feature :ancillary_data do
|
|||
|
||||
describe 'using :AF_UNIX as the family and :UDP as the level' do
|
||||
it 'raises SocketError' do
|
||||
lambda {
|
||||
-> {
|
||||
Socket::AncillaryData.new(:UNIX, :UDP, :CORK, '')
|
||||
}.should raise_error(SocketError)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue