mirror of
https://github.com/discourse/discourse.git
synced 2024-12-27 09:15:58 +08:00
d28f113ce0
* DEV: convert grant-badge to use component modal API * DEV: add system test for grant badge modal happy path
14 lines
281 B
Ruby
14 lines
281 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
|
|
|
|
Fabricator(:manually_grantable_badge, from: :badge) do
|
|
system false
|
|
query nil
|
|
end
|