Skip to content

Commit a3bd673

Browse files
committed
style(rubocop): Minitest/AssertKindOf
1 parent ad199db commit a3bd673

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/test_integration_resultset.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ def test_real_translation
9292
@db.execute("insert into foo_real values (42)")
9393
@db.query("select a, sum(a), typeof(a), typeof(sum(a)) from foo_real") do |result|
9494
result = result.next
95-
assert result[0].is_a?(Float)
96-
assert result[1].is_a?(Float)
97-
assert result[2].is_a?(String)
98-
assert result[3].is_a?(String)
95+
assert_kind_of Float, result[0]
96+
assert_kind_of Float, result[1]
97+
assert_kind_of String, result[2]
98+
assert_kind_of String, result[3]
9999
end
100100
end
101101

test/test_statement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_clear_bindings!
326326
end
327327

328328
def test_stat
329-
assert @stmt.stat.is_a?(Hash)
329+
assert_kind_of Hash, @stmt.stat
330330
end
331331

332332
def test_stat_fullscan_steps

0 commit comments

Comments
 (0)