Fix antenna fabricator tests and move duplicate check to db

This commit is contained in:
KMY 2023-08-22 13:33:20 +09:00
parent e656ab15a1
commit df0b1a4632
8 changed files with 34 additions and 19 deletions

View file

@ -1,5 +1,7 @@
# frozen_string_literal: true
Fabricator(:antenna_account) do
antenna { Fabricate.build(:antenna) }
account { Fabricate.build(:account) }
exclude false
end

View file

@ -1,3 +1,7 @@
# frozen_string_literal: true
Fabricator(:circle_account)
Fabricator(:circle_account) do
circle { Fabricate(:circle) }
account { Fabricate(:account) }
before_create { |circle_account, _| circle_account.account.follow!(circle_account.circle.account) }
end