Sha256: 90f2ffa095b6d4f41bb88d38a7e22c5232035692335ebbfe1a552b6a33244a80

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 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
    association :user, factory: :spina_user

    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

2 entries across 2 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 spec/factories/spina/admin/conferences/blog/posts.rb
spina-admin-conferences-blog-0.2.0 spec/factories/spina/admin/conferences/blog/posts.rb