Sha256: c9a030a56b6667a9e4595d9e648208af363fafa5b2ccb699e85c439bdc8e3217

Contents?: true

Size: 397 Bytes

Versions: 57

Compression:

Stored size: 397 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :tag, class: 'ActsAsTaggableOn::Tag' do
    sequence(:name) { |n| "tag#{n}" }
  end

  factory :tagging, class: 'ActsAsTaggableOn::Tagging' do
    sequence(:tag) { |n| FactoryBot.create(:tag, name: "tagging#{n}") }
    tagger { FactoryBot.create(:exhibit) }
    taggable { FactoryBot.create(:exhibit) }
    context { :tags }
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.2 spec/factories/tags.rb
blacklight-spotlight-3.0.1 spec/factories/tags.rb
blacklight-spotlight-3.0.0 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc6 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc5 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc4 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc3 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc2 spec/factories/tags.rb
blacklight-spotlight-3.0.0.rc1 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.10 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.9 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.8 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.7 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.6 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.5 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.4 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.3 spec/factories/tags.rb