Skip to content

Commit

Permalink
FIX: update after changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lis2 committed Oct 4, 2023
1 parent 6089d39 commit 7ebdb60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/fabricators/topic_voting_hook_fabricator.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# frozen_string_literal: true

Fabricator(:topic_voting_web_hook, from: :web_hook) do
transient topic_voting_hook: WebHookEventType.find_by(name: "topic_upvote")

after_build do |web_hook, transients|
web_hook.web_hook_event_types = [transients[:topic_voting_hook]]
after_build do |web_hook|
web_hook.web_hook_event_types = WebHookEventType.where(name: "topic_upvote")
end
end

0 comments on commit 7ebdb60

Please sign in to comment.