Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use rails conventions

  • Loading branch information...
commit afebf524c34fd562cc559d8a92c71a7cfe7f1b19 1 parent 2400e44
@rafaelfranca rafaelfranca authored
View
4 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

These are not actually the same.

Oh, silly me, I read it as assert_equal. Sorry for the trouble, I just got really confused by this. You're perfectly right though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
end
def test_belongs_to_with_touch_option_on_touch_and_removed_parent

1 comment on commit afebf52

Please sign in to comment.
Something went wrong with that request. Please try again.