mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Provide a post title for sqlite3
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8943 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
5dee6ce9e0
commit
18aa19c68a
1 changed files with 2 additions and 2 deletions
|
@ -68,7 +68,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_including_duplicate_objects_from_belongs_to
|
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")
|
comment = popular_post.comments.create!(:body => "lol")
|
||||||
popular_post.readers.create!(:person => people(:michael))
|
popular_post.readers.create!(:person => people(:michael))
|
||||||
popular_post.readers.create!(:person => people(:david))
|
popular_post.readers.create!(:person => people(:david))
|
||||||
|
@ -81,7 +81,7 @@ class EagerAssociationTest < ActiveRecord::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_including_duplicate_objects_from_has_many
|
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(:general)
|
||||||
car_post.categories << categories(:technology)
|
car_post.categories << categories(:technology)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue