mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@8d74d49
This commit is contained in:
parent
c940397116
commit
d80e44deec
157 changed files with 581 additions and 543 deletions
|
@ -31,12 +31,10 @@ describe 'UDPSocket#initialize' do
|
|||
end
|
||||
|
||||
it 'raises Errno::EAFNOSUPPORT or Errno::EPROTONOSUPPORT when given an invalid address family' do
|
||||
begin
|
||||
-> {
|
||||
UDPSocket.new(666)
|
||||
rescue Errno::EAFNOSUPPORT, Errno::EPROTONOSUPPORT => e
|
||||
}.should raise_error(SystemCallError) { |e|
|
||||
[Errno::EAFNOSUPPORT, Errno::EPROTONOSUPPORT].should include(e.class)
|
||||
else
|
||||
raise "expected Errno::EAFNOSUPPORT or Errno::EPROTONOSUPPORT exception raised"
|
||||
end
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue