aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/autosave_association_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-05-16 10:37:57 -0300
committerJosé Valim <jose.valim@gmail.com>2010-05-16 16:06:28 +0200
commitfdfebb7782a399839ac9a9e63d5153565d6f88f4 (patch)
treeee9f66914f8ebc60ff2c24fd9e375fee08c9fcc7 /activerecord/test/cases/autosave_association_test.rb
parentd7a3e65c50c5e8c0a7a37a59d6244c0e91fda629 (diff)
downloadrails-fdfebb7782a399839ac9a9e63d5153565d6f88f4.tar.gz
rails-fdfebb7782a399839ac9a9e63d5153565d6f88f4.tar.bz2
rails-fdfebb7782a399839ac9a9e63d5153565d6f88f4.zip
Make use of assert_equal to test equallity between object assert expects and object and a message of error
[#4611 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/cases/autosave_association_test.rb')
-rw-r--r--activerecord/test/cases/autosave_association_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb
index 2995cc6f72..5cc5dff633 100644
--- a/activerecord/test/cases/autosave_association_test.rb
+++ b/activerecord/test/cases/autosave_association_test.rb
@@ -765,7 +765,7 @@ class TestAutosaveAssociationOnAHasOneAssociation < ActiveRecord::TestCase
@ship.destroy
@pirate.reload.catchphrase = "Arr"
@pirate.save
- assert 'Arr', @pirate.reload.catchphrase
+ assert_equal 'Arr', @pirate.reload.catchphrase
end
def test_should_automatically_save_the_associated_model
@@ -885,7 +885,7 @@ class TestAutosaveAssociationOnABelongsToAssociation < ActiveRecord::TestCase
@pirate.destroy
@ship.reload.name = "The Vile Insanity"
@ship.save
- assert 'The Vile Insanity', @ship.reload.name
+ assert_equal 'The Vile Insanity', @ship.reload.name
end
def test_should_automatically_save_the_associated_model