Louis Knapp
9 years ago
6 changed files with 42 additions and 13 deletions
@ -1,11 +0,0 @@ |
|||||
FactoryGirl.define do |
|
||||
factory :bike do |
|
||||
sequence(:log_number) |
|
||||
brand "Windsor" |
|
||||
model "Clockwork" |
|
||||
bike_type "Fixed Gear" |
|
||||
color "Black" |
|
||||
sequence(:serial_number) |
|
||||
sequence(:bike_index_id) |
|
||||
end |
|
||||
end |
|
@ -0,0 +1,19 @@ |
|||||
|
FactoryGirl.define do |
||||
|
factory :bike do |
||||
|
sequence(:log_number) |
||||
|
brand "Schwinn" |
||||
|
model "Madison" |
||||
|
bike_type "Fixed Gear" |
||||
|
color "Yellow" |
||||
|
sequence(:serial_number) |
||||
|
sequence(:bike_index_id) |
||||
|
end |
||||
|
|
||||
|
trait :sale do |
||||
|
purpose Bike::SALE |
||||
|
end |
||||
|
|
||||
|
trait :freecyclery do |
||||
|
purpose Bike::FREECYCLERY |
||||
|
end |
||||
|
end |
Loading…
Reference in new issue