aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations/has_many_through_associations_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-05-01 13:53:10 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-05-01 13:53:10 -0700
commite931394d098714c6a4cbb91b8c8c00bd9d6fb850 (patch)
tree5d3c7574c264c1a63b390e624d1394a5c76d2914 /activerecord/test/cases/associations/has_many_through_associations_test.rb
parent8e8a8b55b98747d586300031cdfc22efb459bba5 (diff)
downloadrails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.tar.gz
rails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.tar.bz2
rails-e931394d098714c6a4cbb91b8c8c00bd9d6fb850.zip
Fix failing associate_with_create tests inserting null first_name
Diffstat (limited to 'activerecord/test/cases/associations/has_many_through_associations_test.rb')
-rw-r--r--activerecord/test/cases/associations/has_many_through_associations_test.rb6
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