diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-20 18:59:59 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:56 -0300 |
commit | edb69b9be3be8ea8477004625d1ddf3f3de37d77 (patch) | |
tree | 7eebffcb60256a37e07b942dee7a3d6bcfa00716 /activerecord | |
parent | 4015819adac4e4fcc96a3da4c9873359ea6ce230 (diff) | |
download | rails-edb69b9be3be8ea8477004625d1ddf3f3de37d77.tar.gz rails-edb69b9be3be8ea8477004625d1ddf3f3de37d77.tar.bz2 rails-edb69b9be3be8ea8477004625d1ddf3f3de37d77.zip |
Call super setup in this test.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index b13cb2d7a2..79cb3884a9 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -1196,6 +1196,7 @@ class TestAutosaveAssociationValidationsOnAHasOneAssociation < ActiveRecord::Tes def setup @pirate = Pirate.create(:catchphrase => "Don' botharrr talkin' like one, savvy?") @pirate.create_ship(:name => 'titanic') + super end test "should automatically validate associations with :validate => true" do @@ -1204,7 +1205,7 @@ class TestAutosaveAssociationValidationsOnAHasOneAssociation < ActiveRecord::Tes assert !@pirate.valid? end - test "should not automatically validate associations without :validate => true" do + test "should not automatically asd validate associations without :validate => true" do assert @pirate.valid? @pirate.non_validated_ship.name = '' assert @pirate.valid? |