+6
-2
lines changedFilter options
+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