discourse/spec/fabricators/badge_fabricator.rb

11 lines
199 B
Ruby

# frozen_string_literal: true
Fabricator(:badge_type) do
name { sequence(:name) { |i| "Silver #{i}" } }
end
Fabricator(:badge) do
name { sequence(:name) { |i| "Badge #{i}" } }
badge_type
end