summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/ruby/library/socket/socket/connect_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/library/socket/socket/connect_spec.rb b/spec/ruby/library/socket/socket/connect_spec.rb
index 7fceb47b00..ccace9ff6d 100644
--- a/spec/ruby/library/socket/socket/connect_spec.rb
+++ b/spec/ruby/library/socket/socket/connect_spec.rb
@@ -67,6 +67,8 @@ describe 'Socket#connect' do
client.connect(address)
rescue Errno::ECONNREFUSED
skip "Outgoing packets may be filtered"
+ rescue Errno::ENETUNREACH
+ skip "Off line"
end
}.should raise_error(IO::TimeoutError)
end