Permalink
Browse files

Use rails convetions

  • Loading branch information...
1 parent 97b40f6 commit 15e83ed9a0c00d558d8594291d6026888f3a1783 @rafaelfranca rafaelfranca committed Mar 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/associations/belongs_to_associations_test.rb
@@ -341,14 +341,14 @@ def test_belongs_to_with_touch_option_on_touch
end
def test_belongs_to_with_touch_option_on_touch_without_updated_at_attributes
- assert !LineItem.column_names.include?("updated_at")
+ assert_not LineItem.column_names.include?("updated_at")
line_item = LineItem.create!
invoice = Invoice.create!(line_items: [line_item])
initial = invoice.updated_at
line_item.touch
- refute_equal initial, invoice.reload.updated_at
+ assert_not_equal initial, invoice.reload.updated_at
end
def test_belongs_to_with_touch_option_on_touch_and_removed_parent

0 comments on commit 15e83ed

Please sign in to comment.