Sha256: 12b7b0351aa7d00037d95b2cc44324d640172377bea95b49c4fbc1d62a002176
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
FactoryBot.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
releaf-2.0.0 | spec/factories/node.rb |