Skip to content

Commit ade741e

Browse files
committed
Use rails convetions
1 parent 833109c commit ade741e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/associations/belongs_to_associations_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,14 +341,14 @@ def test_belongs_to_with_touch_option_on_touch
341341
end
342342

343343
def test_belongs_to_with_touch_option_on_touch_without_updated_at_attributes
344-
assert !LineItem.column_names.include?("updated_at")
344+
assert_not LineItem.column_names.include?("updated_at")
345345

346346
line_item = LineItem.create!
347347
invoice = Invoice.create!(line_items: [line_item])
348348
initial = invoice.updated_at
349349
line_item.touch
350350

351-
refute_equal initial, invoice.reload.updated_at
351+
assert_not_equal initial, invoice.reload.updated_at
352352
end
353353

354354
def test_belongs_to_with_touch_option_on_touch_and_removed_parent

0 commit comments

Comments
 (0)