Sha256: 29b4f1f55a47b9b4f5f29b4cfb79bb69ebc3a35826d55f8e5cf82e550df01c2c

Contents?: true

Size: 826 Bytes

Versions: 1

Compression:

Stored size: 826 Bytes

Contents

# Dummy node class for the tests
class Page < Noodall::Node
  #sub_templates PageA, PageB, ArticlesList, LandingPage, EventsList
  searchable_keys :title, :description, :keywords, :body
  root_template!
end

class LandingPage < Noodall::Node
  root_template!
end

# And a factory to build it
Factory.define :home do |node|
  node.title { Faker::Lorem.words(3).join(' ') }
  node.body { Faker::Lorem.paragraph }
  node.published_at { Time.now }
end

# And a factory to build it
Factory.define :page do |node|
  node.title { Faker::Lorem.words(3).join(' ') }
  node.body { Faker::Lorem.paragraph }
  node.published_at { Time.now }
end

# And a factory to build it
Factory.define :landing_page do |node|
  node.title { Faker::Lorem.words(3).join(' ') }
  node.body { Faker::Lorem.paragraph }
  node.published_at { Time.now }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
noodall-core-0.8.2 spec/factories/node.rb