discourse/spec/fabricators/badge_fabricator.rb

10 lines
191 B
Ruby
Raw Normal View History

2014-03-05 07:52:20 -05:00
Fabricator(:badge_type) do
name { sequence(:name) {|i| "Silver #{i}" } }
color_hexcode "c0c0c0"
end
Fabricator(:badge) do
name { sequence(:name) {|i| "Badge #{i}" } }
badge_type
end