Sha256: 5477b952a48c98de5f878fe4f608de9b1a1d2e0255de90c643972e1f9310c582

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :tag do |tag|
    tag.name { FactoryBot.generate(:name) }
    tag.display_name { |a| a.name } # rubocop:disable Style/SymbolProc
    blog { Blog.first || create(:blog) }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
publify_core-10.0.2 lib/publify_core/testing_support/factories/tags.rb
publify_core-10.0.1 lib/publify_core/testing_support/factories/tags.rb
publify_core-10.0.0 lib/publify_core/testing_support/factories/tags.rb