tap/spec/factories/barcodes.rb

22 lines
374 B
Ruby
Raw Normal View History

2015-09-26 16:26:58 +02:00
# == Schema Information
#
# Table name: barcodes
#
# id :integer not null, primary key
# product_id :integer
# code :string default(""), not null
# created_at :datetime
# updated_at :datetime
#
FactoryGirl.define do
factory :barcode do
product
sequence :code
2015-12-01 20:02:08 +01:00
factory :invalid_barcode do
code nil
end
2015-09-26 16:26:58 +02:00
end
end