mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 16:49:40 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
	
		
			412 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
	
		
			412 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| FactoryBot.define do
 | |
|   factory :my_module_status_flow do
 | |
|     name { Faker::Name.unique.name }
 | |
|     description { Faker::Lorem.sentence }
 | |
|     trait :in_team do
 | |
|       team { create :team }
 | |
|       visibility { :in_team }
 | |
|     end
 | |
|     trait :with_statuses do
 | |
|       after(:create) do |flow|
 | |
|         create_list :my_module_status, 3, my_module_status_flow: flow
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |