Fix antenna fabricator tests and move duplicate check to db
This commit is contained in:
parent
e656ab15a1
commit
df0b1a4632
8 changed files with 34 additions and 19 deletions
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Fabricator(:antenna_account) do
|
||||
antenna { Fabricate.build(:antenna) }
|
||||
account { Fabricate.build(:account) }
|
||||
exclude false
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue