aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-25 15:14:52 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-03-25 15:14:52 -0300
commitade741e113928b6ee4b376ee5d60e6813ecc35c4 (patch)
tree2aad5e8e51c91684edafe5d7cc3b4655e57ac64d
parent833109cc99053cf25787ace09a9978a55c079112 (diff)
downloadrails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.tar.gz
rails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.tar.bz2
rails-ade741e113928b6ee4b376ee5d60e6813ecc35c4.zip
Use rails convetions
-rw-r--r--activerecord/test/cases/associations/belongs_to_associations_test.rb4
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