1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 08:43:23 -05:00

Fix bug in seed_bike factory

This commit is contained in:
Jason Denney 2016-02-25 13:36:18 -08:00
parent 4fe8865aca
commit 02fba62499

View File

@ -18,7 +18,7 @@ FactoryGirl.define do
bike_purpose { FactoryGirl.create(:bike_purpose) }
end
factory :seed_bike do
factory :seed_bike, class: Bike do
sequence(:shop_id) {|n| n}
sequence :serial_number do |n|
"#{Faker::Code.isbn}-#{n}"