Browse files

Fix failing associate_with_create tests inserting null first_name

  • Loading branch information...
1 parent 8e8a8b5 commit e931394d098714c6a4cbb91b8c8c00bd9d6fb850 @jeremy jeremy committed May 1, 2008
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/associations/has_many_through_associations_test.rb
View
6 activerecord/test/cases/associations/has_many_through_associations_test.rb
@@ -117,13 +117,13 @@ def test_associate_with_create
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

0 comments on commit e931394

Please sign in to comment.