Skip to content

Commit

Permalink
Fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
shioimm authored and mame committed Nov 30, 2023
1 parent 5f62b1d commit f982931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/ruby/library/socket/socket/getnameinfo_spec.rb
Expand Up @@ -70,7 +70,7 @@ def should_be_valid_dns_name(name)

it 'raises SocketError or TypeError when using an invalid String' do
-> { Socket.getnameinfo('cats') }.should raise_error(Exception) { |e|
[SocketError, TypeError].should include(e.class)
(e.is_a?(SocketError) || e.is_a?(TypeError)).should == true
}
end

Expand Down

0 comments on commit f982931

Please sign in to comment.