diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-25 15:14:52 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-03-25 15:14:52 -0300 |
commit | ade741e113928b6ee4b376ee5d60e6813ecc35c4 (patch) | |
tree | 2aad5e8e51c91684edafe5d7cc3b4655e57ac64d /activerecord | |
parent | 833109cc99053cf25787ace09a9978a55c079112 (diff) | |
download | rails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.tar.gz rails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.tar.bz2 rails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.zip |
Use rails convetions
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/belongs_to_associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/belongs_to_associations_test.rb b/activerecord/test/cases/associations/belongs_to_associations_test.rb index 7994f76d08..a65f2da7a0 100644 --- a/activerecord/test/cases/associations/belongs_to_associations_test.rb +++ b/activerecord/test/cases/associations/belongs_to_associations_test.rb @@ -341,14 +341,14 @@ class BelongsToAssociationsTest < ActiveRecord::TestCase 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 |