about summary refs log tree commit diff
path: root/spec/fabricators/list_account_fabricator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/fabricators/list_account_fabricator.rb')
-rw-r--r--spec/fabricators/list_account_fabricator.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/fabricators/list_account_fabricator.rb b/spec/fabricators/list_account_fabricator.rb
index 30e4004aa..00dde83cd 100644
--- a/spec/fabricators/list_account_fabricator.rb
+++ b/spec/fabricators/list_account_fabricator.rb
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
 Fabricator(:list_account) do
-  list    nil
-  account nil
-  follow  nil
+  list
+  account
+  before_create { |list_account, _| list_account.list.account.follow!(account) }
 end