mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fixup Update specs
Delete empty describe block
This commit is contained in:
@@ -19,24 +19,6 @@ describe ProductComponent, type: :component do
|
||||
end
|
||||
end
|
||||
|
||||
describe 'category' do
|
||||
let(:product) do
|
||||
product = create(:simple_product)
|
||||
product.taxons = taxons
|
||||
|
||||
product
|
||||
end
|
||||
let(:taxons) { [create(:taxon, name: 'random 1'), create(:taxon, name: 'random 2')] }
|
||||
|
||||
before do
|
||||
render_inline(
|
||||
ProductComponent.new(
|
||||
product: product, columns: [{ label: "Category", value: "category", sortable: false }]
|
||||
)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'on_hand' do
|
||||
let(:product) { create(:simple_product, on_hand: on_hand) }
|
||||
let(:on_hand) { 5 }
|
||||
|
||||
Reference in New Issue
Block a user