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

Version Path
noodall-ui-0.0.16 spec/factories/node.rb
noodall-ui-0.0.15 spec/factories/node.rb
noodall-ui-0.0.14 spec/factories/node.rb
noodall-ui-0.0.13 spec/factories/node.rb
noodall-ui-0.0.12 spec/factories/node.rb
noodall-ui-0.0.11 spec/factories/node.rb
noodall-ui-0.0.10 spec/factories/node.rb
noodall-ui-0.0.9 spec/factories/node.rb