mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #12644 from mkllnk/spec-fixes
Fix orders and distributors report after product refactor
This commit is contained in:
@@ -42,7 +42,7 @@ module Reporting
|
||||
private
|
||||
|
||||
def line_item_includes
|
||||
[{ variant: { product: :supplier },
|
||||
[{ variant: [:supplier, :product],
|
||||
order: [:bill_address, :payments, { distributor: :address }] }]
|
||||
end
|
||||
|
||||
|
||||
@@ -25,7 +25,8 @@ RSpec.describe Reporting::Reports::OrdersAndDistributors::Base do
|
||||
let(:distributor1) { create(:distributor_enterprise) }
|
||||
let(:supplier) { create(:supplier_enterprise) }
|
||||
let(:user) { create(:admin_user) }
|
||||
let(:product) { create(:product, supplier:) }
|
||||
let(:product) { variant.product }
|
||||
let(:variant) { create(:variant, supplier:) }
|
||||
let(:shipping_method) { create(:shipping_method) }
|
||||
let(:shipping_instructions) { 'pick up on thursday please!' }
|
||||
let(:order) {
|
||||
|
||||
Reference in New Issue
Block a user