Sha256: e47927739253566373922e72e6ecb00978080abf3089ba47c1de025a724de3a9
Contents?: true
Size: 393 Bytes
Versions: 18
Compression:
Stored size: 393 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
18 entries across 18 versions & 1 rubygems