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

This commit is contained in:
Claire
2026-07-17 16:11:37 +02:00
committed by GitHub
parent 86a7f95534
commit 53c3508ea0
2 changed files with 4 additions and 0 deletions

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}" } }

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