DEV: Fix fabricator deprecations (#17658)

This commit is contained in:
Jarek Radosz 2022-07-26 01:47:09 +02:00 committed by GitHub
parent 59686c1cb8
commit 23a267c75d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ Fabricator(:private_category_with_definition, from: :private_category) do
end
Fabricator(:link_category, from: :category) do
before_validation { |category, transients| category.topic_featured_link_allowed = true }
before_create { |category, transients| category.topic_featured_link_allowed = true }
end
Fabricator(:mailinglist_mirror_category, from: :category) do

View File

@ -7,7 +7,7 @@ Fabricator(:post) do
post_type Post.types[:regular]
# Fabrication bypasses PostCreator, for performance reasons, where the counts are updated so we have to handle this manually here.
after_save do |post, _transients|
after_create do |post, _transients|
UserStatCountUpdater.increment!(post)
end
end