Skip to content
Browse files

bugfix in docs for creating association [ci skip]

in the after build callback. create_list creates a list 
and it has to be assigned as well
  • Loading branch information...
1 parent 62dcdf0 commit 3354e38abbec2664f8115537128b125ccb10ac69 @deepak committed Feb 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 GETTING_STARTED.md
View
2 GETTING_STARTED.md
@@ -375,7 +375,7 @@ FactoryGirl.define do
# attributes; `create_list`'s second argument is the number of records
# to create and we make sure the user is associated properly to the post
after(:create) do |user, evaluator|
- FactoryGirl.create_list(:post, evaluator.posts_count, user: user)
+ user.posts = FactoryGirl.create_list(:post, evaluator.posts_count, user: user)
end
end
end

0 comments on commit 3354e38

Please sign in to comment.
Something went wrong with that request. Please try again.