Merge pull request #3130 from AndrewKvalheim/vote-cache-expiration

Expire voting fragment caches
This commit is contained in:
Henne Vogelsang 2023-04-19 13:23:05 +02:00 committed by GitHub
commit 86b8990d71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 72 additions and 3 deletions

View file

@ -50,6 +50,16 @@ FactoryBot.define do
end
end
factory :cfp_user do
transient do
resource { create(:resource) }
end
after :create do |user, evaluator|
user.add_role :cfp, evaluator.resource
end
end
trait :disabled do
is_disabled { true }
end