aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-02-28 21:01:04 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-02-28 21:01:04 +0000
commit18aa19c68a0ff2dbb3ab77eb35343b2e2a145441 (patch)
tree83ec1546454621b1cca23222f16b5e285356eccd /activerecord/test
parent5dee6ce9e0e31c86c4319c17a1ee551832ecb7a8 (diff)
downloadrails-18aa19c68a0ff2dbb3ab77eb35343b2e2a145441.tar.gz
rails-18aa19c68a0ff2dbb3ab77eb35343b2e2a145441.tar.bz2
rails-18aa19c68a0ff2dbb3ab77eb35343b2e2a145441.zip
Provide a post title for sqlite3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/associations/eager_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/eager_test.rb b/activerecord/test/cases/associations/eager_test.rb
index 0ac5054b45..1bbc68522f 100644
--- a/activerecord/test/cases/associations/eager_test.rb
+++ b/activerecord/test/cases/associations/eager_test.rb
@@ -68,7 +68,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
end
def test_including_duplicate_objects_from_belongs_to
- popular_post = Post.create!(:body => "I like cars!")
+ popular_post = Post.create!(:title => 'foo', :body => "I like cars!")
comment = popular_post.comments.create!(:body => "lol")
popular_post.readers.create!(:person => people(:michael))
popular_post.readers.create!(:person => people(:david))
@@ -81,7 +81,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
end
def test_including_duplicate_objects_from_has_many
- car_post = Post.create!(:body => "I like cars!")
+ car_post = Post.create!(:title => 'foo', :body => "I like cars!")
car_post.categories << categories(:general)
car_post.categories << categories(:technology)