discourse/spec/fabricators/badge_fabricator.rb
2023-01-09 11:49:28 +00:00

9 lines
194 B
Ruby

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