Browse Source

Fix bug in seed_bike factory

denney-docker
Jason Denney 9 years ago
parent
commit
02fba62499
  1. 2
      spec/factories/bikes.rb

2
spec/factories/bikes.rb

@ -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}"

Loading…
Cancel
Save