@@ -192,14 +192,14 @@ def test_should_return_decimal_average_of_integer_field_coerced
192
192
def test_limit_is_kept_coerced
193
193
queries = capture_sql_ss { Account . limit ( 1 ) . count }
194
194
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}
196
196
end
197
197
198
198
coerce_tests! :test_limit_with_offset_is_kept
199
199
def test_limit_with_offset_is_kept_coerced
200
200
queries = capture_sql_ss { Account . limit ( 1 ) . offset ( 1 ) . count }
201
201
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}
203
203
end
204
204
205
205
# SQL Server needs an alias for the calculated column
@@ -265,7 +265,7 @@ class ColumnAttributesTest < ActiveRecord::TestCase
265
265
def test_add_column_without_limit_coerced
266
266
add_column :test_models , :description , :string , limit : nil
267
267
TestModel . reset_column_information
268
- TestModel . columns_hash [ "description" ] . limit . must_equal 4000
268
+ _ ( TestModel . columns_hash [ "description" ] . limit ) . must_equal 4000
269
269
end
270
270
end
271
271
end
@@ -615,14 +615,14 @@ class PersistenceTest < ActiveRecord::TestCase
615
615
coerce_tests! :test_update_all_doesnt_ignore_order
616
616
def test_update_all_doesnt_ignore_order_coerced
617
617
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
621
621
assert_sql ( /UPDATE.*\( SELECT \[ authors\] .\[ id\] FROM \[ authors\] .*ORDER BY \[ authors\] .\[ id\] /i ) do
622
622
Author . where ( '[id] > 1' ) . order ( :id ) . update_all ( name : 'Test' )
623
623
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'
626
626
end
627
627
628
628
# We can not UPDATE identity columns.
0 commit comments