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-4.3.6 spec/factories/tags.rb
blacklight-spotlight-4.3.5 spec/factories/tags.rb
blacklight-spotlight-4.3.4 spec/factories/tags.rb
blacklight-spotlight-4.3.3 spec/factories/tags.rb
blacklight-spotlight-4.3.2 spec/factories/tags.rb
blacklight-spotlight-4.3.1 spec/factories/tags.rb
blacklight-spotlight-4.3.0 spec/factories/tags.rb
blacklight-spotlight-4.2.0 spec/factories/tags.rb
blacklight-spotlight-4.1.2 spec/factories/tags.rb
blacklight-spotlight-4.1.1 spec/factories/tags.rb
blacklight-spotlight-4.1.0 spec/factories/tags.rb
blacklight-spotlight-4.0.3 spec/factories/tags.rb
blacklight-spotlight-4.0.2 spec/factories/tags.rb
blacklight-spotlight-4.0.1 spec/factories/tags.rb
blacklight-spotlight-4.0.0 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta10 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta9 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta8 spec/factories/tags.rb
blacklight-spotlight-3.5.0.4 spec/factories/tags.rb
blacklight-spotlight-3.6.0.beta7 spec/factories/tags.rb