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