Permalink
Browse files

Call super setup in this test.

  • Loading branch information...
1 parent 4015819 commit edb69b9be3be8ea8477004625d1ddf3f3de37d77 @miloops miloops committed Oct 20, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 @@ def setup
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?

0 comments on commit edb69b9

Please sign in to comment.