summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/ipsocket/peeraddr_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/ipsocket/peeraddr_spec.rb')
-rw-r--r--spec/ruby/library/socket/ipsocket/peeraddr_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/ruby/library/socket/ipsocket/peeraddr_spec.rb b/spec/ruby/library/socket/ipsocket/peeraddr_spec.rb
index dfd4e050ce..27529c3d1c 100644
--- a/spec/ruby/library/socket/ipsocket/peeraddr_spec.rb
+++ b/spec/ruby/library/socket/ipsocket/peeraddr_spec.rb
@@ -16,7 +16,9 @@ describe "Socket::IPSocket#peeraddr" do
end
it "raises error if socket is not connected" do
- lambda { @server.peeraddr }.should raise_error
+ lambda {
+ @server.peeraddr
+ }.should raise_error(Errno::ENOTCONN)
end
it "returns an array of information on the peer" do