Skip to content

Commit a4fb32c

Browse files
committed
style(rubocop): Minitest manual corrections
including fixing two incorrect tests
1 parent 7acaa13 commit a4fb32c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/test_database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def teardown
1616
end
1717

1818
def test_segv
19-
assert_raises { SQLite3::Database.new 1 }
19+
assert_raises { SQLite3::Database.new 1 } # rubocop:disable Minitest/UnspecifiedException
2020
end
2121

2222
def test_db_filename

test/test_integration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def test_execute2_no_block_no_bind_no_match
195195
def test_execute2_with_block_no_bind_no_match
196196
called = 0
197197
@db.execute2("select * from foo where a > 100") do |row|
198-
assert ["a", "b"], row unless called == 0
198+
assert_equal(["a", "b"], row) if called == 0
199199
called += 1
200200
end
201201
assert_equal 1, called
@@ -210,7 +210,7 @@ def test_execute2_no_block_with_bind_no_match
210210
def test_execute2_with_block_with_bind_no_match
211211
called = 0
212212
@db.execute2("select * from foo where a > ?", 100) do |row|
213-
assert_equal ["a", "b"], row unless called == 0
213+
assert_equal(["a", "b"], row) if called == 0
214214
called += 1
215215
end
216216
assert_equal 1, called

0 commit comments

Comments
 (0)