@@ -192,14 +192,14 @@ def test_should_return_decimal_average_of_integer_field_coerced
192192 def test_limit_is_kept_coerced
193193 queries = capture_sql_ss { Account . limit ( 1 ) . count }
194194 assert_equal 1 , queries . length
195- queries . first . must_match %r{ORDER BY \[ accounts\] \. \[ id\] ASC OFFSET 0 ROWS FETCH NEXT @0 ROWS ONLY.*@0 = 1}
195+ _ ( queries . first ) . must_match %r{ORDER BY \[ accounts\] \. \[ id\] ASC OFFSET 0 ROWS FETCH NEXT @0 ROWS ONLY.*@0 = 1}
196196 end
197197
198198 coerce_tests! :test_limit_with_offset_is_kept
199199 def test_limit_with_offset_is_kept_coerced
200200 queries = capture_sql_ss { Account . limit ( 1 ) . offset ( 1 ) . count }
201201 assert_equal 1 , queries . length
202- queries . first . must_match %r{ORDER BY \[ accounts\] \. \[ id\] ASC OFFSET @0 ROWS FETCH NEXT @1 ROWS ONLY.*@0 = 1, @1 = 1}
202+ _ ( queries . first ) . must_match %r{ORDER BY \[ accounts\] \. \[ id\] ASC OFFSET @0 ROWS FETCH NEXT @1 ROWS ONLY.*@0 = 1, @1 = 1}
203203 end
204204
205205 # SQL Server needs an alias for the calculated column
@@ -265,7 +265,7 @@ class ColumnAttributesTest < ActiveRecord::TestCase
265265 def test_add_column_without_limit_coerced
266266 add_column :test_models , :description , :string , limit : nil
267267 TestModel . reset_column_information
268- TestModel . columns_hash [ "description" ] . limit . must_equal 4000
268+ _ ( TestModel . columns_hash [ "description" ] . limit ) . must_equal 4000
269269 end
270270 end
271271 end
@@ -615,14 +615,14 @@ class PersistenceTest < ActiveRecord::TestCase
615615 coerce_tests! :test_update_all_doesnt_ignore_order
616616 def test_update_all_doesnt_ignore_order_coerced
617617 david , mary = authors ( :david ) , authors ( :mary )
618- david . id . must_equal 1
619- mary . id . must_equal 2
620- david . name . wont_equal mary . name
618+ _ ( david . id ) . must_equal 1
619+ _ ( mary . id ) . must_equal 2
620+ _ ( david . name ) . wont_equal mary . name
621621 assert_sql ( /UPDATE.*\( SELECT \[ authors\] .\[ id\] FROM \[ authors\] .*ORDER BY \[ authors\] .\[ id\] /i ) do
622622 Author . where ( '[id] > 1' ) . order ( :id ) . update_all ( name : 'Test' )
623623 end
624- david . reload . name . must_equal 'David'
625- mary . reload . name . must_equal 'Test'
624+ _ ( david . reload . name ) . must_equal 'David'
625+ _ ( mary . reload . name ) . must_equal 'Test'
626626 end
627627
628628 # We can not UPDATE identity columns.
0 commit comments