diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-02 10:09:13 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-02 10:09:13 -0700 |
commit | b5d53f864826c7ce88af0d8b9a9ff45f95956f6b (patch) | |
tree | 79a4eb19df0a113511400d3cc458ff8194d2a61d /activerecord/test/cases/associations | |
parent | f71265f7f8b3e284ec713b995c5d5b67557a3ef6 (diff) | |
download | rails-b5d53f864826c7ce88af0d8b9a9ff45f95956f6b.tar.gz rails-b5d53f864826c7ce88af0d8b9a9ff45f95956f6b.tar.bz2 rails-b5d53f864826c7ce88af0d8b9a9ff45f95956f6b.zip |
just use `assert`
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 8d8201ddae..080c499444 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -872,6 +872,6 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase def test_redefine_habtm child = SubDeveloper.new("name" => "Aredridel") child.special_projects << SpecialProject.new("name" => "Special Project") - assert_equal true, child.save + assert child.save, 'child object should be saved' end end |