mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-10 15:15:57 -05:00
Fix account and keypair fabricators not working outside of rspec (#39866)
This commit is contained in:
@@ -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