Skip to content

Commit 8c4884b

Browse files
committed
Remove deprecations for Fixnum in 2.4.
1 parent 1b94978 commit 8c4884b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/cases/connection_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ConnectionTestSQLServer < ActiveRecord::TestCase
3636
describe 'Connection management' do
3737

3838
it 'set spid on connect' do
39-
assert_instance_of Fixnum, connection.spid
39+
['Fixnum', 'Integer'].must_include connection.spid.class.name
4040
end
4141

4242
it 'reset spid on disconnect!' do

test/cases/specific_schema_test_sqlserver.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class SpecificSchemaTestSQLServer < ActiveRecord::TestCase
1717

1818
it 'models can use tinyint pk tables' do
1919
obj = SSTestTinyintPk.create! name: '1'
20-
obj.id.is_a? Fixnum
20+
['Fixnum', 'Integer'].must_include obj.id.class.name
2121
SSTestTinyintPk.find(obj.id).must_equal obj
2222
end
2323

0 commit comments

Comments
 (0)