diff options
author | Emilio Tagua <miloops@gmail.com> | 2009-05-18 20:17:35 -0300 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-05-19 12:11:46 +0200 |
commit | 20deb677a23d2a57f0a946dc98debe0fcdb70c40 (patch) | |
tree | 006974d0d2ad173354e67cdfb12993bbc8bfed7f /activerecord/test/cases/autosave_association_test.rb | |
parent | 07f733c6315980bde120c98c6b8a25e2773ee6bf (diff) | |
download | rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.tar.gz rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.tar.bz2 rails-20deb677a23d2a57f0a946dc98debe0fcdb70c40.zip |
Add missing models and fixtures [#2673 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activerecord/test/cases/autosave_association_test.rb')
-rw-r--r-- | activerecord/test/cases/autosave_association_test.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/activerecord/test/cases/autosave_association_test.rb b/activerecord/test/cases/autosave_association_test.rb index 919b6f857c..f95b2c0079 100644 --- a/activerecord/test/cases/autosave_association_test.rb +++ b/activerecord/test/cases/autosave_association_test.rb @@ -12,6 +12,7 @@ require 'models/reader' require 'models/ship' require 'models/ship_part' require 'models/treasure' +require 'models/company' class TestAutosaveAssociationsInGeneral < ActiveRecord::TestCase def test_autosave_should_be_a_valid_option_for_has_one @@ -38,6 +39,8 @@ class TestAutosaveAssociationsInGeneral < ActiveRecord::TestCase end class TestDefaultAutosaveAssociationOnAHasOneAssociation < ActiveRecord::TestCase + fixtures :companies, :accounts + def test_should_save_parent_but_not_invalid_child firm = Firm.new(:name => 'GlobalMegaCorp') assert firm.valid? @@ -137,6 +140,8 @@ class TestDefaultAutosaveAssociationOnAHasOneAssociation < ActiveRecord::TestCas end class TestDefaultAutosaveAssociationOnABelongsToAssociation < ActiveRecord::TestCase + fixtures :companies + def test_should_save_parent_but_not_invalid_child client = Client.new(:name => 'Joe (the Plumber)') assert client.valid? @@ -920,4 +925,4 @@ class TestAutosaveAssociationOnAHasAndBelongsToManyAssociation < ActiveRecord::T end include AutosaveAssociationOnACollectionAssociationTests -end
\ No newline at end of file +end |