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.5.0.3 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta6 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta5 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta4 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta3 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta1 spec/factories/tags.rb
blacklight-spotlight-3.5.0.2 spec/factories/tags.rb
blacklight-spotlight-3.5.0.1 spec/factories/tags.rb
blacklight-spotlight-3.5.0 spec/factories/tags.rb
blacklight-spotlight-3.4.4.1 spec/factories/tags.rb
blacklight-spotlight-3.4.4 spec/factories/tags.rb
blacklight-spotlight-3.4.3 spec/factories/tags.rb
blacklight-spotlight-3.4.2.2 spec/factories/tags.rb
blacklight-spotlight-3.4.2.1 spec/factories/tags.rb
blacklight-spotlight-3.4.2 spec/factories/tags.rb
blacklight-spotlight-3.4.0 spec/factories/tags.rb
blacklight-spotlight-3.3.0 spec/factories/tags.rb
blacklight-spotlight-3.2.0 spec/factories/tags.rb
blacklight-spotlight-3.1.0 spec/factories/tags.rb
blacklight-spotlight-3.0.3 spec/factories/tags.rb