discourse/spec/fabricators/badge_fabricator.rb
2014-04-17 05:36:29 +05:30

9 lines
166 B
Ruby

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