Sha256: 846eb307e89cf340bb4a5f3339dabb7d46b0848b145e79294b5bb02c34a3a704

Contents?: true

Size: 380 Bytes

Versions: 7

Compression:

Stored size: 380 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 :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

7 entries across 7 versions & 1 rubygems

Version Path
noodall-ui-0.0.8 spec/factories/node.rb
noodall-ui-0.0.7 spec/factories/node.rb
noodall-ui-0.0.6 spec/factories/node.rb
noodall-ui-0.0.5 spec/factories/node.rb
noodall-ui-0.0.4 spec/factories/node.rb
noodall-ui-0.0.3 spec/factories/node.rb
noodall-ui-0.0.2 spec/factories/node.rb