amend test

This commit is contained in:
Sam 2014-08-08 10:02:26 +10:00
parent 953d3f2151
commit f20c5a02c7
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}