1
0
mirror of synced 2026-08-05 22:56:55 +00:00

empty badge grant job

This commit is contained in:
Rimian Perkins
2017-04-27 18:47:27 +10:00
parent 9038701520
commit 219444eab2
4 changed files with 23 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
RSpec.describe Jobs::GrantBadge, type: :job do
let(:users) { [Fabricate(:user), Fabricate(:user)] }
let(:badge) { Fabricate(:badge, name: 'el-grande') }
before do
SiteSetting.stubs(:discourse_donations_reward_badge_name).returns(badge.name)
end
it 'grants all the users the badge'
end