1 2 3 4
Factory.define(:post, :class => BlogPost) do |f| f.title "Top Ten Shopping Centers in Chicago" f.body "These are the top ten shopping centers in Chicago. You're going to read a long blog post about them. Come to peace with it." end