summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/tcpserver/initialize_spec.rb
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-25 10:41:16 +0000
commite87fb88be844f0fae736768846954b6f6f7dc7c3 (patch)
treecbe2ab069e40b5b7f3217ce95b793426b303a305 /spec/ruby/library/socket/tcpserver/initialize_spec.rb
parente59bf54b3a88d0465cca021afae7dc05b6db57a7 (diff)
Update to ruby/spec@241f9e7
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/library/socket/tcpserver/initialize_spec.rb')
-rw-r--r--spec/ruby/library/socket/tcpserver/initialize_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/ruby/library/socket/tcpserver/initialize_spec.rb b/spec/ruby/library/socket/tcpserver/initialize_spec.rb
index 9a55cf17e2..412bdbfb9d 100644
--- a/spec/ruby/library/socket/tcpserver/initialize_spec.rb
+++ b/spec/ruby/library/socket/tcpserver/initialize_spec.rb
@@ -2,7 +2,7 @@ require_relative '../spec_helper'
require_relative '../fixtures/classes'
describe 'TCPServer#initialize' do
- describe 'with a single Fixnum argument' do
+ describe 'with a single Integer argument' do
before do
@server = TCPServer.new(0)
end
@@ -12,7 +12,7 @@ describe 'TCPServer#initialize' do
end
it 'sets the port to the given argument' do
- @server.local_address.ip_port.should be_an_instance_of(Fixnum)
+ @server.local_address.ip_port.should be_kind_of(Integer)
@server.local_address.ip_port.should > 0
end
@@ -38,7 +38,7 @@ describe 'TCPServer#initialize' do
end
it 'sets the port to the given argument' do
- @server.local_address.ip_port.should be_an_instance_of(Fixnum)
+ @server.local_address.ip_port.should be_kind_of(Integer)
@server.local_address.ip_port.should > 0
end
@@ -56,7 +56,7 @@ describe 'TCPServer#initialize' do
end
end
- describe 'with a String and a Fixnum' do
+ describe 'with a String and an Integer' do
SocketSpecs.each_ip_protocol do |family, ip_address|
before do
@server = TCPServer.new(ip_address, 0)
@@ -67,7 +67,7 @@ describe 'TCPServer#initialize' do
end
it 'sets the port to the given port argument' do
- @server.local_address.ip_port.should be_an_instance_of(Fixnum)
+ @server.local_address.ip_port.should be_kind_of(Integer)
@server.local_address.ip_port.should > 0
end
@@ -90,7 +90,7 @@ describe 'TCPServer#initialize' do
end
it 'sets the port to the given port argument' do
- @server.local_address.ip_port.should be_an_instance_of(Fixnum)
+ @server.local_address.ip_port.should be_kind_of(Integer)
@server.local_address.ip_port.should > 0
end