Fix account and keypair fabricators not working outside of rspec (#39866)

This commit is contained in:
Claire authored and GitHub committed 2026-07-17 14:11:37 +00:00
1 parent 86a7f95534
commit 53c3508ea0
2 files changed
+4

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# frozen_string_literal: true
require_relative '../support/signing_keys_helpers'
Fabricator(:account) do
transient :suspended, :silenced, :legacy_keypair
username { sequence(:username) { |i| "#{Faker::Internet.user_name(separators: %w(_))}#{i}" } }
+2
View File
@@ -1,5 +1,7 @@
# frozen_string_literal: true
require_relative '../support/signing_keys_helpers'
Fabricator(:keypair) do
account { Fabricate(:account, keypairs: []) }
type :rsa