summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/socket/connect_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/socket/socket/connect_spec.rb')
-rw-r--r--spec/ruby/library/socket/socket/connect_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/ruby/library/socket/socket/connect_spec.rb b/spec/ruby/library/socket/socket/connect_spec.rb
index 1e2982bfde..e26bf39cbb 100644
--- a/spec/ruby/library/socket/socket/connect_spec.rb
+++ b/spec/ruby/library/socket/socket/connect_spec.rb
@@ -37,11 +37,13 @@ describe 'Socket#connect' do
}.should raise_error(Errno::EISCONN)
end
- it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
- begin
- @client.connect(@server.getsockname)
- rescue => e
- [Errno::ECONNREFUSED, Errno::ETIMEDOUT].include?(e.class).should == true
+ platform_is_not :darwin do
+ it 'raises Errno::ECONNREFUSED or Errno::ETIMEDOUT when the connection failed' do
+ begin
+ @client.connect(@server.getsockname)
+ rescue => e
+ [Errno::ECONNREFUSED, Errno::ETIMEDOUT].include?(e.class).should == true
+ end
end
end
end