Sha256: c33918f842eb8386db585bc84e13d740ce0ad7187937faf59639f7d8157babb7

Contents?: true

Size: 316 Bytes

Versions: 60

Compression:

Stored size: 316 Bytes

Contents

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

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

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/factories/tags.rb
blacklight-spotlight-1.0.0.alpha2 spec/factories/tags.rb
blacklight-spotlight-1.0.0.alpha1 spec/factories/tags.rb
blacklight-spotlight-0.34.1 spec/factories/tags.rb
blacklight-spotlight-0.34.0 spec/factories/tags.rb
blacklight-spotlight-0.33.3 spec/factories/tags.rb
blacklight-spotlight-0.33.2 spec/factories/tags.rb
blacklight-spotlight-0.33.1 spec/factories/tags.rb
blacklight-spotlight-0.33.0 spec/factories/tags.rb
blacklight-spotlight-0.32.0 spec/factories/tags.rb
blacklight-spotlight-0.31.0 spec/factories/tags.rb
blacklight-spotlight-0.30.0 spec/factories/tags.rb
blacklight-spotlight-0.29.1 spec/factories/tags.rb
blacklight-spotlight-0.29.0 spec/factories/tags.rb
blacklight-spotlight-0.28.3 spec/factories/tags.rb
blacklight-spotlight-0.28.2 spec/factories/tags.rb
blacklight-spotlight-0.28.1 spec/factories/tags.rb
blacklight-spotlight-0.28.0 spec/factories/tags.rb
blacklight-spotlight-0.27.0 spec/factories/tags.rb
blacklight-spotlight-0.26.1 spec/factories/tags.rb