Sha256: c066648fe9400300108af436befc3a45784f36cf89b83c0d37924c6d8f00dcf5

Contents?: true

Size: 1.48 KB

Versions: 25

Compression:

Stored size: 1.48 KB

Contents

FactoryGirl.define do
  factory :node, class: ::Node do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "HomePage"
  end

  factory :other_node, class: ::OtherSite::OtherNode do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "HomePage"
  end

  factory :home_page_node, class: ::Node do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "HomePage"
    content_attributes ({ intro_text_html: "some <strong>STRRRONG</strong> text" })
  end

  factory :other_home_page_node, class: ::OtherSite::OtherNode do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "HomePage"
    content_attributes ({ intro_text_html: "some <strong>STRRRONG</strong> text" })
  end

  factory :text_page_node, class: ::Node do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "TextPage"
    content_attributes ({ text_html: "some <strong>STRIONG</strong> text" })
  end

  factory :other_text_page_node, class: ::OtherSite::OtherNode do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "TextPage"
    content_attributes ({ text_html: "some <strong>STRIONG</strong> text" })
  end

  factory :banner_page_node, class: ::Node do
    sequence(:name) {|n| "node #{n}"}
    sequence(:slug) {|n| "node-#{n}"}
    content_type "BannerPage"
    content_attributes ({})
  end


end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
releaf-1.1.22 spec/factories/node.rb
releaf-1.1.21 spec/factories/node.rb
releaf-1.1.20 spec/factories/node.rb
releaf-1.1.19 spec/factories/node.rb
releaf-1.1.18 spec/factories/node.rb
releaf-1.1.17 spec/factories/node.rb
releaf-1.1.16 spec/factories/node.rb
releaf-1.1.15 spec/factories/node.rb
releaf-1.1.14 spec/factories/node.rb
releaf-1.1.13 spec/factories/node.rb
releaf-1.1.12 spec/factories/node.rb
releaf-1.1.11 spec/factories/node.rb
releaf-1.1.10 spec/factories/node.rb
releaf-1.1.9 spec/factories/node.rb
releaf-1.1.8 spec/factories/node.rb
releaf-1.1.7 spec/factories/node.rb
releaf-1.1.6 spec/factories/node.rb
releaf-1.1.5 spec/factories/node.rb
releaf-1.1.4 spec/factories/node.rb
releaf-1.1.3 spec/factories/node.rb