mirror of
				https://github.com/fspc/BikeShed-1.git
				synced 2025-10-31 17:05:36 -04:00 
			
		
		
		
	Fix bug in seed_bike factory
This commit is contained in:
		
							parent
							
								
									4fe8865aca
								
							
						
					
					
						commit
						02fba62499
					
				| @ -18,7 +18,7 @@ FactoryGirl.define do | |||||||
|     bike_purpose { FactoryGirl.create(:bike_purpose) } |     bike_purpose { FactoryGirl.create(:bike_purpose) } | ||||||
|   end |   end | ||||||
| 
 | 
 | ||||||
|   factory :seed_bike do |   factory :seed_bike, class: Bike do | ||||||
|     sequence(:shop_id) {|n| n} |     sequence(:shop_id) {|n| n} | ||||||
|     sequence :serial_number do |n| |     sequence :serial_number do |n| | ||||||
|       "#{Faker::Code.isbn}-#{n}" |       "#{Faker::Code.isbn}-#{n}" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user