mirror of https://github.com/fspc/BikeShed-1.git
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.
22 lines
441 B
22 lines
441 B
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :bike do
|
|
sequence :shop_id do |n|
|
|
"Shop ID #{n}"
|
|
end
|
|
sequence :serial_number do |n|
|
|
"S/N# #{n}"
|
|
end
|
|
bike_brand_id 1
|
|
bike_model_id 1
|
|
color "FFFFFF"
|
|
bike_style_id 1
|
|
seat_tube_height 5
|
|
top_tube_length 6
|
|
wheel_size 27
|
|
value 100
|
|
bike_condition_id 1
|
|
bike_status_id 1
|
|
end
|
|
end
|
|
|