Space : Challenge_count will exclude 'draft' challenge from the count
Acceptance test
To test, reset your database with bundle exec rails db:reset
then
>> Space.first.challenges
>> => Challenge.first
>> Space.first.challenges.accepted_challenge
>> => []
>> FactoryBot.build(:challenge).save
>> Challenge.last.active!
>> Space.first.challenges << Challenge.last
>> Space.first.challenges.accepted_challenge
>> [Challenge id:2 ]
Add Space Seeds Only challenge "accepted_challenge" will be count in Space
Closed issue 896
Edited by Isabelle Lafont