Sha256: bda7c9a23fe6c2025966c9e4ea8680e6d97507690cd932d2beb54db5c6d3f4c5

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 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!

  main_slots 1
  small_slots 4
  wide_slots 3
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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
noodall-core-0.5.1 spec/factories/node.rb
noodall-core-0.5.0 spec/factories/node.rb
noodall-core-0.4.8 spec/factories/node.rb
noodall-core-0.4.7 spec/factories/node.rb
noodall-core-0.4.6 spec/factories/node.rb
noodall-core-0.4.5 spec/factories/node.rb
noodall-core-0.4.3 spec/factories/node.rb
noodall-core-0.4.2 spec/factories/node.rb
noodall-core-0.4.0 spec/factories/node.rb