mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix rebase issue
This commit is contained in:
@@ -70,7 +70,8 @@ RSpec.describe Admin::OrdersHelper, type: :helper do
|
||||
}
|
||||
let!(:ship_address){ create(:ship_address) }
|
||||
let!(:product) {
|
||||
create(:simple_product, supplier: enterprise, price: 10, tax_category_id: tax_category.id)
|
||||
create(:simple_product, supplier_id: enterprise.id, price: 10,
|
||||
tax_category_id: tax_category.id)
|
||||
}
|
||||
let!(:variant){
|
||||
create(:variant, :with_order_cycle, product:, distributor: enterprise, order_cycle:,
|
||||
|
||||
@@ -670,7 +670,7 @@ RSpec.describe '
|
||||
|
||||
it "checks error when creating product image with unsupported format" do
|
||||
unsupported_image_file_path = Rails.root.join("README.md").to_s
|
||||
product = create(:simple_product, supplier_id: @supplier2.id)
|
||||
product = create(:simple_product, supplier_id: supplier2.id)
|
||||
|
||||
image = white_logo_file
|
||||
Spree::Image.create(viewable_id: product.id, viewable_type: 'Spree::Product',
|
||||
|
||||
@@ -385,7 +385,8 @@ RSpec.describe '
|
||||
let(:product2) {
|
||||
create(:simple_product, name: "Product 2", price: 99.0, variant_unit: 'weight',
|
||||
variant_unit_scale: 1, unit_value: '100',
|
||||
primary_taxon_id: taxon.id, sku: "product_sku", supplier_id: supplier.id)
|
||||
primary_taxon_id: taxon.id, sku: "product_sku",
|
||||
supplier_id: supplier.id)
|
||||
}
|
||||
let(:variant1) { product1.variants.first }
|
||||
let(:variant2) { create(:variant, product: product1, price: 80.0, primary_taxon: taxon, supplier:) }
|
||||
|
||||
Reference in New Issue
Block a user