mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 08:53:38 +08:00
amend test
This commit is contained in:
parent
953d3f2151
commit
f20c5a02c7
|
@ -34,7 +34,7 @@ describe BadgeGranter do
|
|||
it 'should grant missing badges' do
|
||||
post = Fabricate(:post, like_count: 30)
|
||||
2.times {
|
||||
BadgeGranter.backfill(Badge.find(Badge::NicePost))
|
||||
BadgeGranter.backfill(Badge.find(Badge::NicePost), post_ids: [post.id])
|
||||
BadgeGranter.backfill(Badge.find(Badge::GoodPost))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user