A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ruby/spec/commit/c503335d3d9f6ec6ef24de60a0716c34af69b64f below:

This spec raises EINVAL on Windows and not ENOTCONN · ruby/spec@c503335 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+6

-2

lines changed Original file line number Diff line number Diff line change

@@ -79,8 +79,12 @@

79 79

end

80 80 81 81

it "raises Errno::ENOTCONN" do

82 -

-> { @server.recv_nonblock(1) }.should raise_error(Errno::ENOTCONN)

83 -

-> { @server.recv_nonblock(1, exception: false) }.should raise_error(Errno::ENOTCONN)

82 +

-> { @server.recv_nonblock(1) }.should raise_error { |e|

83 +

[Errno::ENOTCONN, Errno::EINVAL].should.include?(e.class)

84 +

}

85 +

-> { @server.recv_nonblock(1, exception: false) }.should raise_error { |e|

86 +

[Errno::ENOTCONN, Errno::EINVAL].should.include?(e.class)

87 +

}

84 88

end

85 89

end

86 90

end

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4