Sha256: e5cbbb81bb0a19ae679c3be573de6f7fae49b80ece83838f136c51896fefc71a

Contents?: true

Size: 440 Bytes

Versions: 5

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :spina_blog_post, class: Spina::Admin::Conferences::Blog::Post do
    sequence(:title) { |n| "Blog Post #{n}" }
    content { 'Some content for my post' }
    association :category, factory: :spina_blog_category

    seo_title { 'Some title for SEO' }
    description { 'Some description for SEO' }

    factory :invalid_spina_blog_post do
      title { nil }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.1.4 spec/factories/spina/admin/conferences/blog/posts.rb
spina-admin-conferences-blog-0.1.3 spec/factories/spina/admin/conferences/blog/posts.rb
spina-admin-conferences-blog-0.1.2 spec/factories/spina/admin/conferences/blog/posts.rb
spina-admin-conferences-blog-0.1.1 spec/factories/spina/admin/conferences/blog/posts.rb
spina-admin-conferences-blog-0.1.0 spec/factories/spina/admin/conferences/blog/posts.rb