File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments