mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							19 lines
						
					
					
						
							461 B
						
					
					
				
			
		
		
	
	
							19 lines
						
					
					
						
							461 B
						
					
					
				# frozen_string_literal: true
 | 
						|
 | 
						|
FactoryBot.define do
 | 
						|
  factory :account do
 | 
						|
    name { Faker::Company.name }
 | 
						|
    locale { 'en-US' }
 | 
						|
    timezone { 'UTC' }
 | 
						|
 | 
						|
    trait :with_testing_account do
 | 
						|
      after(:create) do |account|
 | 
						|
        testing_account = account.dup.tap { |a| a.name = "Testing - #{account.name}" }
 | 
						|
        testing_account.uuid = SecureRandom.uuid
 | 
						|
        account.testing_accounts << testing_account
 | 
						|
        account.save!
 | 
						|
      end
 | 
						|
    end
 | 
						|
  end
 | 
						|
end
 |