Fix account and keypair fabricators not working outside of rspec (#39866)
This commit is contained in:
1 parent
86a7f95534
commit
53c3508ea0
2 files changed
+4
No files matched your search
@@ -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}" } }
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative '../support/signing_keys_helpers'
|
||||
|
||||
Fabricator(:keypair) do
|
||||
account { Fabricate(:account, keypairs: []) }
|
||||
type :rsa
|
||||
|
||||
Reference in new issue
Block a user