mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Call super setup in this test.
This commit is contained in:
parent
4015819ada
commit
edb69b9be3
1 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue