29 lines
777 B
Ruby
29 lines
777 B
Ruby
# == Schema Information
|
|
#
|
|
# Table name: products
|
|
#
|
|
# id :integer not null, primary key
|
|
# name :string not null
|
|
# price_cents :integer default("0"), not null
|
|
# created_at :datetime
|
|
# updated_at :datetime
|
|
# avatar_file_name :string
|
|
# avatar_content_type :string
|
|
# avatar_file_size :integer
|
|
# avatar_updated_at :datetime
|
|
# category :integer default("0")
|
|
# stock :integer default("0"), not null
|
|
# calories :integer
|
|
# deleted :boolean default("f")
|
|
#
|
|
|
|
describe Product do
|
|
before :each do
|
|
@product = create :product
|
|
end
|
|
|
|
it 'has a valid factory' do
|
|
expect(@product).to be_valid
|
|
end
|
|
end
|