Sha256: 5f44d1ab4763ac92f7ccd4e2c17b5ec19098e47060a1f36f45cb9442aa702068
Contents?: true
Size: 450 Bytes
Versions: 8
Compression:
Stored size: 450 Bytes
Contents
Factory.define :node do |node| node.title { Faker::Lorem.words(3).join(' ') } node.body { Faker::Lorem.paragraphs(6) } node.published_at { Time.now } end Factory.define :home, :parent => :node, :class => Home do |node| end Factory.define :page_a, :parent => :node, :class => PageA do |node| end Factory.define :page_b, :parent => :node, :class => PageB do |node| end Factory.define :page_c, :parent => :node, :class => PageC do |node| end
Version data entries
8 entries across 8 versions & 1 rubygems