@@ -44,7 +44,7 @@ def test_table_info_without_defaults_for_version_3_3_8_and_higher
4444 end
4545
4646 def test_complete_fail
47- assert ! @db . complete? ( "select * from foo" )
47+ refute @db . complete? ( "select * from foo" )
4848 end
4949
5050 def test_complete_success
@@ -144,7 +144,7 @@ def test_execute_with_block_no_bind_no_match
144144 @db . execute ( "select * from foo where a > 100" ) do |row |
145145 called = true
146146 end
147- assert ! called
147+ refute called
148148 end
149149
150150 def test_execute_no_block_with_bind_no_match
@@ -157,7 +157,7 @@ def test_execute_with_block_with_bind_no_match
157157 @db . execute ( "select * from foo where a > ?" , 100 ) do |row |
158158 called = true
159159 end
160- assert ! called
160+ refute called
161161 end
162162
163163 def test_execute_no_block_no_bind_with_match
@@ -462,22 +462,22 @@ def test_transaction_commit_in_block
462462 end
463463
464464 def test_transaction_active
465- assert ! @db . transaction_active?
465+ refute_predicate @db , : transaction_active?
466466 @db . transaction
467467 assert_predicate @db , :transaction_active?
468468 @db . commit
469- assert ! @db . transaction_active?
469+ refute_predicate @db , : transaction_active?
470470 end
471471
472472 def test_transaction_implicit_rollback
473- assert ! @db . transaction_active?
473+ refute_predicate @db , : transaction_active?
474474 @db . transaction
475475 @db . execute ( "create table bar (x CHECK(1 = 0))" )
476476 assert_predicate @db , :transaction_active?
477477 assert_raises ( SQLite3 ::ConstraintException ) do
478478 @db . execute ( "insert or rollback into bar (x) VALUES ('x')" )
479479 end
480- assert ! @db . transaction_active?
480+ refute_predicate @db , : transaction_active?
481481 end
482482
483483 def test_interrupt
0 commit comments