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