Skip to content

Instantly share code, notes, and snippets.

@FlaviuSim
Created September 17, 2011 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FlaviuSim/1224293 to your computer and use it in GitHub Desktop.
Save FlaviuSim/1224293 to your computer and use it in GitHub Desktop.
after_build do |q|
2.times { q.answers.build(FactoryGirl.attributes_for(:answer)) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment