tap/spec/factories/barcodes.rb
2015-12-01 20:02:08 +01:00

22 lines
374 B
Ruby

# == 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
factory :invalid_barcode do
code nil
end
end
end