Add 24 weeks to Community Wellness streak (#20396)

* add 24 as week option

* Fix flaky spec

---------

Co-authored-by: Mac Siri <krairit.siri@gmail.com>
This commit is contained in:
Philip How 2023-11-28 21:50:04 +00:00 committed by GitHub
parent 88769c6a3c
commit dde1b10ba6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,6 @@
module Badges
class AwardCommunityWellness
REWARD_STREAK_WEEKS = [1, 2, 4, 8, 16, 32].freeze
REWARD_STREAK_WEEKS = [1, 2, 4, 8, 16, 24, 32].freeze
def self.call
# These are the users 'eligible' to be awarded the badge

View file

@ -20,6 +20,7 @@ RSpec.describe "Sidebars" do
end
before do
article.update_columns(language: "en")
user.follow(tag)
end