mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-01 00:56:05 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			535 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| FactoryBot.define do
 | |
|   factory :repository_checklist_value do
 | |
|     created_by { create :user }
 | |
|     last_modified_by { created_by }
 | |
|     repository_checklist_items { [] }
 | |
|     after(:build) do |repository_checklist_value|
 | |
|       repository_checklist_value.repository_cell ||= build(:repository_cell,
 | |
|                                                            :checkbox_value,
 | |
|                                                            repository_checklist_value: repository_checklist_value)
 | |
|     end
 | |
|   end
 | |
| end
 |