Sha256: 57a34202c0230fe7ba5e8a0290a10ac512c6a5be352ae7bebac4ca0de1c796c7

Contents?: true

Size: 362 Bytes

Versions: 7

Compression:

Stored size: 362 Bytes

Contents

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

7 entries across 7 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/factories/tags.rb
blacklight-spotlight-2.4.0 spec/factories/tags.rb
blacklight-spotlight-2.3.3 spec/factories/tags.rb
blacklight-spotlight-2.3.2 spec/factories/tags.rb
blacklight-spotlight-2.3.1 spec/factories/tags.rb
blacklight-spotlight-2.3.0 spec/factories/tags.rb
blacklight-spotlight-2.2.1 spec/factories/tags.rb