diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-05-01 13:53:10 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-05-01 13:53:10 -0700 |
commit | e931394d098714c6a4cbb91b8c8c00bd9d6fb850 (patch) | |
tree | 5d3c7574c264c1a63b390e624d1394a5c76d2914 /activerecord | |
parent | 8e8a8b55b98747d586300031cdfc22efb459bba5 (diff) | |
download | rails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.tar.gz rails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.tar.bz2 rails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.zip |
Fix failing associate_with_create tests inserting null first_name
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index e297447c88..5561361bca 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -117,13 +117,13 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase def test_associate_with_create_and_no_options peeps = posts(:thinking).people.count - posts(:thinking).people.create + posts(:thinking).people.create(:first_name => 'foo') assert_equal peeps + 1, posts(:thinking).people.count end - def test_associate_with_create_exclaimation_and_no_options + def test_associate_with_create_exclamation_and_no_options peeps = posts(:thinking).people.count - posts(:thinking).people.create! + posts(:thinking).people.create!(:first_name => 'foo') assert_equal peeps + 1, posts(:thinking).people.count end |