Sha256: e47927739253566373922e72e6ecb00978080abf3089ba47c1de025a724de3a9

Contents?: true

Size: 393 Bytes

Versions: 18

Compression:

Stored size: 393 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

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/factories/tags.rb
blacklight-spotlight-3.0.0.alpha.1 spec/factories/tags.rb
blacklight-spotlight-2.13.0 spec/factories/tags.rb
blacklight-spotlight-2.12.1 spec/factories/tags.rb
blacklight-spotlight-2.12.0 spec/factories/tags.rb
blacklight-spotlight-2.11.0 spec/factories/tags.rb
blacklight-spotlight-2.10.0 spec/factories/tags.rb
blacklight-spotlight-2.9.0 spec/factories/tags.rb
blacklight-spotlight-2.8.0 spec/factories/tags.rb
blacklight-spotlight-2.7.2 spec/factories/tags.rb
blacklight-spotlight-2.7.1 spec/factories/tags.rb
blacklight-spotlight-2.7.0 spec/factories/tags.rb
blacklight-spotlight-2.6.1.1 spec/factories/tags.rb
blacklight-spotlight-2.6.1 spec/factories/tags.rb
blacklight-spotlight-2.6.0 spec/factories/tags.rb
blacklight-spotlight-2.5.2 spec/factories/tags.rb
blacklight-spotlight-2.5.1 spec/factories/tags.rb
blacklight-spotlight-2.5.0 spec/factories/tags.rb