tap/spec/models/product_spec.rb

29 lines
777 B
Ruby
Raw Normal View History

# == Schema Information
#
# Table name: products
#
# id :integer not null, primary key
# name :string not null
# price_cents :integer default("0"), not null
2015-02-09 16:06:24 +00:00
# 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
2015-03-03 16:41:53 +00:00
it 'has a valid factory' do
expect(@product).to be_valid
2015-03-03 16:41:53 +00:00
end
2014-11-24 20:45:32 +00:00
end